#31298: Integrity Error in running django tests with multiple instances of 
TestCase
class
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  (none)
  shailysangwan                      |
                   Type:  Bug        |         Status:  new
              Component:  Error      |        Version:  2.2
  reporting                          |       Keywords:  Teardown fixtures
               Severity:  Normal     |  IntegrityError
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 The tests defined for the first TestCase execute successfully. However,
 for the next TestCase I get an integrity error indicating that the
 fixtures from the previous TestCase were not cleaned up after the test
 run. This happens only with Postgres. The same tests run successfully with
 SQLite. If I put these tests within the same class, they run successfully
 even with postgres.
 Postgres version - 10.10

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31298>
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/056.032eca80e20dd6257155b92541312294%40djangoproject.com.

Reply via email to