diff --git a/tests/test_types.py b/tests/test_types.py index 055ac9d..c8d8576 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -2,6 +2,7 @@ from pytest_lazyfixture import lazy_fixture from mati.types import ValidationInputType +from mati.types.enums import VerificationDocumentStep def test_type_to_str(): @@ -31,3 +32,9 @@ def test_type_to_str(): ) def test_document_type(verification_document, expected_type): assert verification_document.document_type == expected_type + + +def test_excess_fields(): + data = {'some': 'data', 'aditional': 'data', 'id': 'foo', 'status': 10} + step = VerificationDocumentStep._from_dict(data) + assert step