Skip to content

Commit

Permalink
Fixed inventory roles tests after Cumulocity changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chsou committed Jun 4, 2024
1 parent 85d4d9b commit f509b07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_tests/test_inventoryroles.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def test_CRUD(live_c8y):
# 3) delete the role
role.delete()
# -> verify that the role is gone
# (unfortunately this throws a SyntaxError instead of a KeyError)
with pytest.raises(SyntaxError):
# (this used to throw a SyntaxError, KeyError since 10.20)
with pytest.raises(KeyError):
live_c8y.inventory_roles.get(role.id)


Expand Down Expand Up @@ -74,8 +74,8 @@ def test_CRUD2(live_c8y):
# 5) delete the role
live_c8y.inventory_roles.delete(created_role.id)
# -> verify that the role is gone
# (unfortunately this throws a SyntaxError instead of a KeyError)
with pytest.raises(SyntaxError):
# (this used to throw a SyntaxError, KeyError since 10.20)
with pytest.raises(KeyError):
live_c8y.inventory_roles.get(created_role.id)


Expand Down

0 comments on commit f509b07

Please sign in to comment.