Skip to content

Commit 0d45d14

Browse files
author
MrButtCode
committed
fix(ci): remove fragile current_app context in favor of global config
1 parent faa1cb9 commit 0d45d14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def cache_has_expired() -> bool:
8989
:rtype: bool
9090
"""
9191
global cached_load_time
92-
from flask import current_app
92+
from run import config
9393

9494
# Always bypass cache during unit tests to prevent test pollution
95-
if current_app.config.get('TESTING'):
95+
if config.get('TESTING'):
9696
return True
9797

9898
return cached_load_time + timedelta(hours=1) < datetime.now()

0 commit comments

Comments
 (0)