From 0f416c44d033a0685b8c8bf034d4efbbbef2b4eb Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Thu, 21 Jul 2022 21:07:32 -0400 Subject: [PATCH] test_rate_limiter: Define backend on RateLimiterBackendBase. Signed-off-by: Zixuan James Li --- zerver/tests/test_rate_limiter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/tests/test_rate_limiter.py b/zerver/tests/test_rate_limiter.py index 57c83b95f3..ad12e4620f 100644 --- a/zerver/tests/test_rate_limiter.py +++ b/zerver/tests/test_rate_limiter.py @@ -36,6 +36,8 @@ class RateLimitedTestObject(RateLimitedObject): class RateLimiterBackendBase(ZulipTestCase, ABC): + backend: Type[RateLimiterBackend] + def setUp(self) -> None: self.requests_record: Dict[str, List[float]] = {}