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 , 8 years ago
Summary: | Unclear wording in the documentation → Unclear "after each test" wording in the documentation |
---|
Note:
See TracTickets
for help on using tickets.
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.