mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-03 14:33:11 -05:00
Settings, Themes and Migration Route Tests (#100)
* dev-bug: fixed vscode freezes * test: refactor database init to support tests * mealplan CRUD testing * restructure test folder * git attributes * tests: migration, settings, theme routes testing Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
@@ -24,9 +24,9 @@ def test_webhooks():
|
||||
|
||||
|
||||
@router.post("/api/site-settings/update/")
|
||||
def update_settings(data: SiteSettings):
|
||||
def update_settings(data: SiteSettings, db: Session = Depends(generate_session)):
|
||||
""" Returns Site Settings """
|
||||
data.update()
|
||||
data.update(db)
|
||||
# try:
|
||||
# data.update()
|
||||
# except:
|
||||
@@ -34,7 +34,7 @@ def update_settings(data: SiteSettings):
|
||||
# status_code=400, detail=SnackResponse.error("Unable to Save Settings")
|
||||
# )
|
||||
|
||||
scheduler.reschedule_webhooks()
|
||||
# scheduler.reschedule_webhooks() #! Need to fix Scheduler
|
||||
return SnackResponse.success("Settings Updated")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user