-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow base tests to use dynamic database
These tests are the most unconventional of the all the coding systems tests that use the dynamic database because: * they uses fixtures to setup databases, and this needs to happen before `setUp()`, so we also have to mangle the `databases` attribute before `setUp()` * one of the tests actually needs to access multiple databases, which breaks the pattern for all other tests After a little bit of trying, it seems overly complicated to try and generalise the setup and teardown pattern here, partly due to the use of pytest fixtures and the limitations in `TestCase` classes, so it's been left as it was in the original code.
- Loading branch information
1 parent
7888706
commit 340142f
Showing
1 changed file
with
210 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters