#35722: Specify behaviour in TransactionTestCase.reset_sequences
-------------------------------------+-------------------------------------
Reporter: Slava M. | Owner: (none)
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: docs, test, | Triage Stage:
documentation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* resolution: => wontfix
* status: new => closed
Comment:
Replying to [comment:2 Simon Charette]:
> ...a `subTest` context is solely a manner to annotate part of a test
case method body with some context.
Exactly - `subTest` is a [https://docs.python.org/3/library/unittest.html
#distinguishing-test-iterations-using-subtests unittest feature], not a
Django feature, and any `setUp()` or `tearDown()` etc happens per test
(not per `subTest`). The `reset_sequences` behavior is consistent to this.
Hence, I don't think we need to add documentation to Django on this
--
Ticket URL: <https://code.djangoproject.com/ticket/35722#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070191a3c084af-04a03c08-e90e-449c-9cd5-4126cdedaa38-000000%40eu-central-1.amazonses.com.