From 6070867e0d5b4237155ac6da5a0be5fdc8dccbb5 Mon Sep 17 00:00:00 2001 From: Richard Baltrusch Date: Sun, 26 May 2024 15:24:10 +0200 Subject: [PATCH] Cache cursor --- tests/unit/server_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/server_test.py b/tests/unit/server_test.py index 0d1f35e..7d499cd 100644 --- a/tests/unit/server_test.py +++ b/tests/unit/server_test.py @@ -21,6 +21,8 @@ def setup(): + if cursor: + return cursor global cursor, database_ database_ = "".join(random.choices(string.ascii_lowercase, k=10)) + ".db" print(f"{database_=}")