Changes between Initial Version and Version 1 of Ticket #28478, comment 3


Ignore:
Timestamp:
08/14/2017 12:24:56 PM (4 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28478, comment 3

    initial v1  
    1 I wonder if we could unify `SimpleTestCase.allow_database_queries`, `TransactionTestCase.mutli_db` and this feature under a single `SimpleTestCase.databases` feature.
     1I wonder if we could unify `SimpleTestCase.allow_database_queries`, `TransactionTestCase.mutli_db` and this feature under a single `SimpleTestCase.databases` attribute.
    22
    33The `databases` attribute could be set to `None` on `SimpleTestCase` and to `{DEFAULT_DB_ALIAS}` on `TransactionTestCase` with a deprecation shim that turns `multi_db = True` into `set(connections)`. The discover runner could simply create the union of all tests's `databases` and the `allow_database_queries` functionality could be reused to block accessed to all connection aliases not defined in the test's `databases`.
Back to Top