Fix import src.utils.cache

This commit is contained in:
Colin Maudry
2026-04-21 17:21:32 +02:00
parent d4844140b4
commit a906a40b7b
+2 -2
View File
@@ -83,7 +83,7 @@ def flask_app():
"""Minimal Flask app with SimpleCache so @cache.memoize() works in tests.""" """Minimal Flask app with SimpleCache so @cache.memoize() works in tests."""
from flask import Flask from flask import Flask
from utils.cache import cache from src.utils.cache import cache
app = Flask(__name__) app = Flask(__name__)
cache.init_app(app, config={"CACHE_TYPE": "SimpleCache"}) cache.init_app(app, config={"CACHE_TYPE": "SimpleCache"})
@@ -95,7 +95,7 @@ def reset_cache(flask_app):
"""Ensure the flask-caching backend is empty between tests so that """Ensure the flask-caching backend is empty between tests so that
cache-hit assertions are meaningful. Falls back to no-op when no cache-hit assertions are meaningful. Falls back to no-op when no
Flask app context is active (NullCache).""" Flask app context is active (NullCache)."""
from utils.cache import cache from src.utils.cache import cache
with flask_app.app_context(): with flask_app.app_context():
try: try: