mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
Tweak error halding a little
- Python should raise exceptions on error. Not return False. - Negative durations are nonense. - ChatID validity is already checked by the Rust API, let's not duplicate.
This commit is contained in:
@@ -229,8 +229,8 @@ class TestOfflineChat:
|
||||
assert not chat.is_muted()
|
||||
assert chat.mute(50)
|
||||
assert chat.is_muted()
|
||||
assert chat.mute(-51)
|
||||
assert not chat.is_muted()
|
||||
with pytest.raises(ValueError):
|
||||
chat.mute(-51)
|
||||
|
||||
def test_delete_and_send_fails(self, ac1, chat1):
|
||||
chat1.delete()
|
||||
|
||||
Reference in New Issue
Block a user