Suppress Cron when testing
This commit is contained in:
@ -171,8 +171,9 @@ def raplaSchedule():
|
||||
"""
|
||||
Nutzt alle 3 Minuten refreshRapla() um die Stundenpläne zu aktualisieren.
|
||||
"""
|
||||
with flaskApp.app_context():
|
||||
asyncio.run(refreshRapla())
|
||||
if not flaskApp.config["TESTING"]:
|
||||
with flaskApp.app_context():
|
||||
asyncio.run(refreshRapla())
|
||||
|
||||
|
||||
async def buildICALfromKey(url, onlyUpdate, testing=False):
|
||||
|
||||
Reference in New Issue
Block a user