test_rate_limiter: Define backend on RateLimiterBackendBase.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-21 21:07:32 -04:00 committed by Tim Abbott
parent f88530575a
commit 0f416c44d0
1 changed files with 2 additions and 0 deletions

View File

@ -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]] = {}