test: fix broken test
Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
parent
ba16cdd3ac
commit
ea19f7dbd6
|
@ -6,7 +6,7 @@ def test_del_is_abstract():
|
||||||
"""
|
"""
|
||||||
exists mainly for coverage reasons
|
exists mainly for coverage reasons
|
||||||
"""
|
"""
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(NotImplementedError):
|
||||||
del CloudEvent()["a"]
|
del CloudEvent()["a"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ def test_set_is_abstract():
|
||||||
"""
|
"""
|
||||||
exists mainly for coverage reasons
|
exists mainly for coverage reasons
|
||||||
"""
|
"""
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(NotImplementedError):
|
||||||
CloudEvent()["a"] = 2
|
CloudEvent()["a"] = 2
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ def test_create_is_abstract():
|
||||||
"""
|
"""
|
||||||
exists mainly for coverage reasons
|
exists mainly for coverage reasons
|
||||||
"""
|
"""
|
||||||
|
with pytest.raises(NotImplementedError):
|
||||||
assert CloudEvent.create({}, None) is None
|
assert CloudEvent.create({}, None) is None
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ def test_data_read_is_abstract():
|
||||||
"""
|
"""
|
||||||
exists mainly for coverage reasons
|
exists mainly for coverage reasons
|
||||||
"""
|
"""
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(NotImplementedError):
|
||||||
CloudEvent()._data_read_model
|
CloudEvent()._data_read_model
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,5 +38,5 @@ def test_attributes_read_model_is_abstract():
|
||||||
"""
|
"""
|
||||||
exists mainly for coverage reasons
|
exists mainly for coverage reasons
|
||||||
"""
|
"""
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(NotImplementedError):
|
||||||
CloudEvent()._attributes_read_model
|
CloudEvent()._attributes_read_model
|
Loading…
Reference in New Issue