MCPcopy
hub / github.com/django/django / test_register_non_serializer

Method test_register_non_serializer

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

Source from the content-addressed store, hash-verified

1255 self.assertSerializedEqual(complex(1, 2))
1256
1257 def test_register_non_serializer(self):
1258 with self.assertRaisesMessage(
1259 ValueError, "'TestModel1' must inherit from 'BaseSerializer'."
1260 ):
1261 MigrationWriter.register_serializer(complex, TestModel1)
1262
1263 def test_composite_pk_import(self):
1264 migration = type(

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.80
register_serializerMethod · 0.80

Tested by

no test coverage detected