mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
update env settings for production and testing
This commit is contained in:
parent
ac07065613
commit
fbc17b670d
@ -96,7 +96,7 @@ RUN echo "crfpp-container"
|
|||||||
###############################################
|
###############################################
|
||||||
FROM python-base as production
|
FROM python-base as production
|
||||||
ENV PRODUCTION=true
|
ENV PRODUCTION=true
|
||||||
ENV TESTING = false
|
ENV TESTING=false
|
||||||
|
|
||||||
# curl for used by healthcheck
|
# curl for used by healthcheck
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -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 pathlib import Path
|
||||||
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
from pytest import fixture
|
|
||||||
|
|
||||||
from mealie.app import app
|
from mealie.app import app
|
||||||
from mealie.core import config
|
from mealie.core import config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user