From 2f8858c260defedcdebb6795fb8130d0e6500e71 Mon Sep 17 00:00:00 2001 From: Aaron Harper Date: Thu, 2 Nov 2023 20:12:09 -0400 Subject: [PATCH] Fix shared state between tests --- tests/cases/middleware.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cases/middleware.py b/tests/cases/middleware.py index 18c68a31..184829b4 100644 --- a/tests/cases/middleware.py +++ b/tests/cases/middleware.py @@ -13,7 +13,8 @@ class _State(base.BaseState): - hook_list: list[str] = [] + def __init__(self) -> None: + self.hook_list: list[str] = [] def create(