Skip to content

Commit

Permalink
Cache cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
rbaltrusch committed May 26, 2024
1 parent 20b3d51 commit 6070867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/server_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_=}")
Expand Down

0 comments on commit 6070867

Please sign in to comment.