diff --git a/integration_tests/test_inventoryroles.py b/integration_tests/test_inventoryroles.py index 45fbc0f..122a2e8 100644 --- a/integration_tests/test_inventoryroles.py +++ b/integration_tests/test_inventoryroles.py @@ -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) @@ -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)