Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_audit_log: Fix an assertion for a function that never returns.

Zixuan James Li11a23aa5ef32
diff --git a/zerver/tests/test_audit_log.py b/zerver/tests/test_audit_log.py
index c62b933a98e..17a84bc6c5c 100644
--- a/zerver/tests/test_audit_log.py
+++ b/zerver/tests/test_audit_log.py
@@ -180,7 +180,8 @@ class TestRealmAuditLog(ZulipTestCase):
).count(),
1,
)
- self.assertIsNone(validate_password(password, user))
+ # No error should be raised here
+ validate_password(password, user)
def test_change_email(self) -> None:
now = timezone_now()