test: reset pairlocks pior to running test

This commit is contained in:
Matthias
2026-04-07 06:44:25 +02:00
parent c906e146fc
commit 70b24fd0c1
+1
View File
@@ -165,6 +165,7 @@ def test_PairLocks_reason(use_db):
def test_PairLocks_no_duplicates(use_db, time_machine):
PairLocks.timeframe = "5m"
PairLocks.use_db = use_db
PairLocks.reset_locks()
# No lock should be present
assert len(PairLocks.get_all_locks()) == 0
time_machine.move_to("2026-01-05 20:00:05 +00:00", tick=False)