Suppress Cron when testing

This commit is contained in:
2024-06-04 10:28:34 +02:00
parent 0a38bb951b
commit 079e405942
3 changed files with 11 additions and 6 deletions

View File

@ -146,5 +146,6 @@ def mensaSchedule():
"""
Nutzt vormittags die Funktion refreshMeals(), um die Essen zu aktualisieren
"""
with flaskApp.app_context():
asyncio.run(refreshMeals())
if not flaskApp.config["TESTING"]:
with flaskApp.app_context():
asyncio.run(refreshMeals())