MCPcopy
hub / github.com/django/django / test_create_model2

Method test_create_model2

tests/migrations/test_multidb.py:80–84  ·  view source on GitHub ↗

Test when router returns False (i.e. CreateModel shouldn't run).

(self)

Source from the content-addressed store, hash-verified

78
79 @override_settings(DATABASE_ROUTERS=[MigrateNothingRouter()])
80 def test_create_model2(self):
81 """
82 Test when router returns False (i.e. CreateModel shouldn't run).
83 """
84 self._test_create_model("test_mltdb_crmo2", should_run=False)
85
86 @override_settings(DATABASE_ROUTERS=[MigrateEverythingRouter()])
87 def test_create_model3(self):

Callers

nothing calls this directly

Calls 1

_test_create_modelMethod · 0.95

Tested by

no test coverage detected