forked from username/flaskpaste
fix lint issues across codebase
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user