#13439 closed (worksforme)
repeated "No fixtures found." on manage.py test
Reported by: | Waldemar Kornewald | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | 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
We're using Django's TestCase
class when we run manage.py test
this happens (desired behavior: the "No fixtures found." message should only be printed once - if it's needed at all):
No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. .No fixtures found. ... ---------------------------------------------------------------------- Ran 44 tests in 4.916s OK
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I haven't ever seen this. You'll need to provide a test case to demonstrate how and when this happens.
Note:
See TracTickets
for help on using tickets.
I've had no luck duplicating this so far... I've tried having no fixtures, empty fixtures, etc. and I've tried it with a single TestCase class, multiple TestCase classes, multiple test methods on those classes, different verbosity levels... Every way I try it I only get the "no fixtures found." method once.
I may be missing something. But for the sake of asking, are you doing something in the setUp or tearDown method that might be triggering this?
Other thought: could this be a DB-specific problem where a fixture is being re-loaded each time instead of a rollback? My attempts at duplicating this bug are simply on sqlite.