fix lint issues across codebase

This commit is contained in:
Username
2025-12-20 17:20:27 +01:00
parent adbb5be5c0
commit 9da33f786e
6 changed files with 29 additions and 32 deletions

View File

@@ -67,9 +67,8 @@ class TestCleanupExpiredPastes:
# Mock time to simulate expiry (paste expiry + 1 second)
future_time = time.time() + app.config["PASTE_EXPIRY_SECONDS"] + 1
with patch("time.time", return_value=future_time):
with app.app_context():
deleted = cleanup_expired_pastes()
with patch("time.time", return_value=future_time), app.app_context():
deleted = cleanup_expired_pastes()
assert deleted >= 1