Petits ajustements (cache => utils, noms de variables)

This commit is contained in:
Colin Maudry
2026-04-19 23:49:02 +02:00
parent 3ce6f224ae
commit 7aef7acd34
5 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ def flask_app():
"""Minimal Flask app with SimpleCache so @cache.memoize() works in tests."""
from flask import Flask
from src.cache import cache
from utils.cache import cache
app = Flask(__name__)
cache.init_app(app, config={"CACHE_TYPE": "SimpleCache"})
@@ -97,7 +97,7 @@ def reset_cache(flask_app):
"""Ensure the flask-caching backend is empty between tests so that
cache-hit assertions are meaningful. Falls back to no-op when no
Flask app context is active (NullCache)."""
from src.cache import cache
from utils.cache import cache
with flask_app.app_context():
try: