Suppress Cron when testing
This commit is contained in:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user