Skip to content

Commit

Permalink
Add test for legacy UserService type_ conversion (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Nov 27, 2023
1 parent f6eff1a commit 31c6e4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 31c6e4a

Please sign in to comment.