Opened 3 years ago

Closed 3 years ago

#33325 closed Bug (invalid)

When running full test suite Django test fails, but when running TestCase classes individually works just fine

Reported by: Dylan Yung Owned by: nobody
Component: Testing framework Version: 3.2
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 (last modified by Dylan Yung)

So when running the full test suite as in python manage.py test my HomeTests fail, but when running individually all my TestCase pass. Also I added a need TestCase called ExploreFeedTests and when I comment that out my test suite succeeds. Keep in my individually my TestCases pass. Apparently this is an issue that has existed in Django for quite some time now. I'm running Django 3.2.9

https://stackoverflow.com/questions/70105907/django-full-test-suite-failing-when-adding-a-testcase-but-full-test-suite-pas?noredirect=1#comment123974351_70105907

https://stackoverflow.com/questions/29792439/why-would-a-django-test-fail-only-when-the-full-test-suite-is-run

https://groups.google.com/g/django-users/c/OedhPc5bXYE/m/7C-1r3LkUesJ?pli=1

Change History (2)

comment:1 by Dylan Yung, 3 years ago

Description: modified (diff)

comment:2 by Claude Paroz, 3 years ago

Resolution: invalid
Status: newclosed

This is a typical case where some of your test has side effects that affect other tests when run in combination. But you didn't demonstrate how Django would be faulty at this regard. So please try to get help, and reopen with more details if you can show a problem in Django itself.

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