Setup Tests

This commit is contained in:
2024-05-21 13:29:43 +02:00
parent 2153bb07b9
commit bf6d3b737a
8 changed files with 99 additions and 42 deletions

View File

@ -2,7 +2,7 @@ import json
import asyncio
from init import db, Meals, scheduler, app
from init import db, Meals, scheduler, flask_app
import datetime
import time
import httpx
@ -143,5 +143,5 @@ async def refreshMeals():
@scheduler.task('cron', id="mensaschedule", hour='8-11', day_of_week='*', minute='*/15', week='*', second='5')
def mensaschedule():
with app.app_context():
with flask_app.app_context():
asyncio.run(refreshMeals())