MCPcopy
hub / github.com/django/django / test_none_app_label

Method test_none_app_label

tests/migrations/test_optimizer.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 """
14
15 def test_none_app_label(self):
16 optimizer = MigrationOptimizer()
17 with self.assertRaisesMessage(TypeError, "app_label must be a str"):
18 optimizer.optimize([], None)
19
20 def test_single(self):
21 """

Callers

nothing calls this directly

Calls 3

optimizeMethod · 0.95
MigrationOptimizerClass · 0.90
assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected