Improve error verification in async_model tests.
This commit is contained in:
parent
d9e8eb23e3
commit
2bc7f0b75f
|
@ -453,7 +453,7 @@ def test_User_unsettable_name(client_fixture):
|
||||||
with pytest.raises(RuntimeError) as e:
|
with pytest.raises(RuntimeError) as e:
|
||||||
c.name = "totò"
|
c.name = "totò"
|
||||||
|
|
||||||
assert "Name property is not modifiable." in str(e)
|
assert "Name property is not modifiable." in str(e.value)
|
||||||
|
|
||||||
|
|
||||||
def test_User_singleton(client_fixture):
|
def test_User_singleton(client_fixture):
|
||||||
|
@ -696,7 +696,7 @@ def test_Service_unsettable_name(client_fixture):
|
||||||
with pytest.raises(RuntimeError) as e:
|
with pytest.raises(RuntimeError) as e:
|
||||||
c.name = "theta"
|
c.name = "theta"
|
||||||
|
|
||||||
assert "Name property is not modifiable." in str(e)
|
assert "Name property is not modifiable." in str(e.value)
|
||||||
|
|
||||||
|
|
||||||
def test_Service_singleton(client_fixture):
|
def test_Service_singleton(client_fixture):
|
||||||
|
@ -746,7 +746,7 @@ def test_Group_unsettable_name(client_fixture):
|
||||||
with pytest.raises(RuntimeError) as e:
|
with pytest.raises(RuntimeError) as e:
|
||||||
c.name = "nemici"
|
c.name = "nemici"
|
||||||
|
|
||||||
assert "Name property is not modifiable." in str(e)
|
assert "Name property is not modifiable." in str(e.value)
|
||||||
|
|
||||||
|
|
||||||
def test_Group_singleton(client_fixture):
|
def test_Group_singleton(client_fixture):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user