MCPcopy
hub / github.com/django/django / test_create_model

Method test_create_model

tests/migrations/test_multidb.py:73–77  ·  view source on GitHub ↗

Test when router doesn't have an opinion (i.e. CreateModel should run).

(self)

Source from the content-addressed store, hash-verified

71
72 @override_settings(DATABASE_ROUTERS=[AgnosticRouter()])
73 def test_create_model(self):
74 """
75 Test when router doesn't have an opinion (i.e. CreateModel should run).
76 """
77 self._test_create_model("test_mltdb_crmo", should_run=True)
78
79 @override_settings(DATABASE_ROUTERS=[MigrateNothingRouter()])
80 def test_create_model2(self):

Callers

nothing calls this directly

Calls 1

_test_create_modelMethod · 0.95

Tested by

no test coverage detected