Make `inspectdb` regression tests introspect a manageable database
|Reported by:||ramiro||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by ramiro)
Currently, the tests in our test suite direct the inspectdb management command calls to examine the 'default' database that will contain the tables corresponding to all the models of the suite being run (they can be hundreds in the case of the full suite).
This makes creating new test cases for the introspection functionality harder that it should because one needs to peruse a gigantic models.py file.
Maybe we can add a third DB to the DATABASES setting used for our tests and direct/restrict the models in regressiontests/inspectdb/models.py to such DB by using a router?.
Change History (6)
comment:1 Changed 3 years ago by ramiro
- Summary changed from Make syncdb regression tests to introspect a manageable database to Make syncdb regression tests introspect a manageable database
comment:2 Changed 3 years ago by ramiro
- Description modified (diff)
- Summary changed from Make syncdb regression tests introspect a manageable database to Make `inspectdb` regression tests introspect a manageable database