Docs don't mention that TestCase.multi_db affects test fixtures
|Reported by:||slinkp||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
From reading http://docs.djangoproject.com/en/1.2/topics/testing/#django.test.TestCase.fixtures
I wouldn't guess that you have to do anything special to load fixtures in multi-database setups.
says nothing about fixtures. A strict reading would make me think multi_db only affects cleaning databases and maybe loading initial_data fixtures; it doesn't say that it affects loading the fixtures from TestCase.fixtures.
Perhaps that's implied, but I think it should be explicit.
This is especially confusing because there is no output from the test runner at all about fixture loading, either success or failure.
Change History (9)
comment:1 Changed 4 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
Changed 21 months ago by timo
comment:7 Changed 21 months ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed