MCPcopy
hub / github.com/django/django / test_atomic_is_false

Method test_atomic_is_false

tests/migrations/test_writer.py:1300–1308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1298 self.assertIn(expected_run_before_str, output)
1299
1300 def test_atomic_is_false(self):
1301 migration = type(
1302 "Migration",
1303 (migrations.Migration,),
1304 {"operations": [], "atomic": False},
1305 )
1306 writer = MigrationWriter(migration)
1307 output = writer.as_string()
1308 self.assertIn(" atomic = False\n", output)
1309
1310 def test_default_attributes(self):
1311 migration = type("Migration", (migrations.Migration,), {})

Callers

nothing calls this directly

Calls 2

as_stringMethod · 0.95
MigrationWriterClass · 0.90

Tested by

no test coverage detected