update env settings for production and testing

This commit is contained in:
Hayden 2022-02-08 13:38:12 -09:00
parent ac07065613
commit fbc17b670d
2 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,13 @@
import os
from pytest import MonkeyPatch, fixture
mp = MonkeyPatch()
mp.setenv("PRODUCTION", "True")
mp.setenv("TESTING", "True")
os.environ["PRODUCTION"] = "True"
os.environ["TESTING"] = "True"
from pathlib import Path
from fastapi.testclient import TestClient
from pytest import fixture
from mealie.app import app
from mealie.core import config