diff --git a/tests/test_model.py b/tests/test_model.py index 8cf8f5d..2a3013c 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -344,6 +344,9 @@ def test_user_service_conversion(): assert UserService.from_dict({"args": [{"name": "arg", "type": 1}]}) == UserService( args=[UserServiceArg(name="arg", type=UserServiceArgType.INT)] ) + assert UserService.from_dict( + {"args": [{"name": "arg", "type_": 1}]} + ) == UserService(args=[UserServiceArg(name="arg", type=UserServiceArgType.INT)]) @pytest.mark.parametrize(