Django
2015-07-26 16:37:31 UTC
#25176: TestCase: an error in setUpTestData snowballs across the entire test suite
--------------------------------------+--------------------
Reporter: adamchainz | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Testing framework | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
If a setUpTestData function fails, it causes an error that breaks the
current transaction; this is not undone by TestCase, and thus all
following database access in all other tests fails, outputting a lot of
ERRORs on a test run, and making it hard to debug that it was only the
*first* one that has an actual problem. The atomic instances can be exited
cleanly on exception fairly easily inside the TestCase code.
--
Ticket URL: <https://code.djangoproject.com/ticket/25176>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--------------------------------------+--------------------
Reporter: adamchainz | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Testing framework | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
If a setUpTestData function fails, it causes an error that breaks the
current transaction; this is not undone by TestCase, and thus all
following database access in all other tests fails, outputting a lot of
ERRORs on a test run, and making it hard to debug that it was only the
*first* one that has an actual problem. The atomic instances can be exited
cleanly on exception fairly easily inside the TestCase code.
--
Ticket URL: <https://code.djangoproject.com/ticket/25176>
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 django-updates+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.cb7d4415a392f0cf26ec9b2a61c0b3b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
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 django-updates+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.cb7d4415a392f0cf26ec9b2a61c0b3b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.