MCPcopy
hub / github.com/django/django / test_create_model3

Method test_create_model3

tests/migrations/test_multidb.py:87–91  ·  view source on GitHub ↗

Test when router returns True (i.e. CreateModel should run).

(self)

Source from the content-addressed store, hash-verified

85
86 @override_settings(DATABASE_ROUTERS=[MigrateEverythingRouter()])
87 def test_create_model3(self):
88 """
89 Test when router returns True (i.e. CreateModel should run).
90 """
91 self._test_create_model("test_mltdb_crmo3", should_run=True)
92
93 def test_create_model4(self):
94 """

Callers

nothing calls this directly

Calls 1

_test_create_modelMethod · 0.95

Tested by

no test coverage detected