MCPcopy
hub / github.com/django/django / test_load_module_file

Method test_load_module_file

tests/migrations/test_loader.py:228–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

226 MigrationLoader(connection)
227
228 def test_load_module_file(self):
229 with override_settings(
230 MIGRATION_MODULES={"migrations": "migrations.faulty_migrations.file"}
231 ):
232 loader = MigrationLoader(connection)
233 self.assertIn(
234 "migrations",
235 loader.unmigrated_apps,
236 "App with migrations module file not in unmigrated apps.",
237 )
238
239 def test_load_empty_dir(self):
240 with override_settings(

Callers

nothing calls this directly

Calls 2

override_settingsClass · 0.90
MigrationLoaderClass · 0.90

Tested by

no test coverage detected