🚧 Expand generic utility mixin to handle up to 5 type arguments

This commit is contained in:
2023-03-12 18:04:28 +01:00
parent 21c201b681
commit 84fa2d2cd9
4 changed files with 128 additions and 28 deletions

View File

@ -17,7 +17,7 @@ class GenericSchemaTestCase(TestCase):
# Explicit annotation to possibly catch mypy errors:
output: Foo = schema_obj.instantiate(mock_data)
self.assertIs(mock_cls.return_value, output)
mock__get_type_arg.assert_called_once_with()
mock__get_type_arg.assert_called_once_with(0)
mock_cls.assert_called_once_with(**mock_data)
def test_load_and_loads(self) -> None: