Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Aug 13, 2024
1 parent 111e748 commit 5240c97
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async def test_dev_get_and_patch_service(
description="bar",
classifiers=None,
versionDisplay="Some nice name",
access_rights={1: {"execute": True, "write": True}},
accessRights={1: {"execute": True, "write": True}},
)
response = await client.patch(
f"{url}", json=jsonable_encoder(update, exclude_unset=True)
Expand All @@ -206,10 +206,10 @@ async def test_dev_get_and_patch_service(
model = parse_obj_as(CatalogServiceGet, data)
assert model.key == service_key
assert model.version == service_version
assert model.name == "foo"
assert model.description == "bar"
assert model.version_display == "Some nice name"
assert model.access_rights == {1: {"execute": True, "write": False}}
assert model.name == update.name
assert model.description == update.description
assert model.version_display == update.version_display
assert model.access_rights == update.access_rights

assert mocked_rpc_catalog_service_api["get_service"].call_count == 1
assert mocked_rpc_catalog_service_api["update_service"].call_count == 1

0 comments on commit 5240c97

Please sign in to comment.