Add test for legacy UserService type_ conversion (#761)

This commit is contained in:
J. Nick Koston 2023-11-27 08:46:36 -06:00 committed by GitHub
parent f6eff1a205
commit 31c6e4abc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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(