Opened 8 years ago

Closed 8 years ago

#27298 closed Bug (wontfix)

Unclear "after each test" wording in the documentation

Reported by: Victor Porton Owned by: nobody
Component: Documentation Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/1.10/topics/testing/advanced/ says:
"After each test, Django calls flush to reset the database state"

It is it flushed after every test method? or only after all methods of a test class run (without flushing between methods of the same class)?

Change History (2)

comment:1 by Tim Graham, 8 years ago

Summary: Unclear wording in the documentationUnclear "after each test" wording in the documentation

My understanding is that in Python, "test" is a synonym for "test method." For example the test runner says something like, "Ran 85 tests" at the end of a test suite run. I'm not sure if the wording needs to be clarified or not. Likely there are other places in the documentation that use "test" as a shorthand for "test method". This is also the case in Python's unittest documentation.

comment:2 by Claude Paroz, 8 years ago

Resolution: wontfix
Status: newclosed

Agreed with Tim.

Note: See TracTickets for help on using tickets.
Back to Top