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 )
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://groups.google.com/g/django-users/c/OedhPc5bXYE/m/7C-1r3LkUesJ?pli=1
Change History (2)
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.