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.

tests: Correct the assert in the post-rate-limit test.

Alex Vandiver328a28d7721c
diff --git a/zerver/tests/test_external.py b/zerver/tests/test_external.py
index 04b3a821ea1..6ba69a751c6 100644
--- a/zerver/tests/test_external.py
+++ b/zerver/tests/test_external.py
@@ -178,7 +178,7 @@ class RateLimitTests(ZulipTestCase):
with mock.patch("time.time", return_value=(start_time + 1.01)):
result = request_func()
- self.assertNotEqual(result, 429)
+ self.assertNotEqual(result.status_code, 429)
def test_hit_ratelimits_as_user(self) -> None:
user = self.example_user("cordelia")