Code

Opened 3 years ago

Closed 3 years ago

#16608 closed Bug (fixed)

Typo in the doc (Testing Django)

Reported by: Stan <stan__at__slashdev.me> Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords: test
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Maybe this is because my works environment is noisy (and also because english is not my mother tongue) but the following sounds strange to me:

https://docs.djangoproject.com/en/dev/topics/testing/#django.test.utils.setup_test_environment

destroy_test_db(old_database_name, verbosity=1)

Destroys the database whose name is in stored in NAME in the DATABASES, and sets NAME to use the provided name.

verbosity has the same behavior as in run_tests().

Attachments (1)

16608.typo-testing-doc.diff (939 bytes) - added by julien 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by julien

comment:1 Changed 3 years ago by julien

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by aaugustin

  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 3 years ago by gabrielhurley

  • Resolution set to fixed
  • Status changed from new to closed

In [16625]:

Fixed #16608 -- Clarified the description of the destroy_test_db method and cleaned up various other reST/Sphinx-related bits in the testing docs. Thanks to Stan for the report and Julien for the draft patch.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.