Unmute should also raise exceptions

And tests should not care about return values.
This commit is contained in:
Floris Bruynooghe
2020-02-09 19:11:30 +01:00
parent 0242322d24
commit e525c42c7d
2 changed files with 7 additions and 5 deletions

View File

@@ -223,11 +223,11 @@ class TestOfflineChat:
def test_mute(self, ac1):
chat = ac1.create_group_chat(name="title1")
assert not chat.is_muted()
assert chat.mute()
chat.mute()
assert chat.is_muted()
assert chat.unmute()
chat.unmute()
assert not chat.is_muted()
assert chat.mute(50)
chat.mute(50)
assert chat.is_muted()
with pytest.raises(ValueError):
chat.mute(-51)