From c55183cfb79f2a6efca86f29cdec133e07366cfd Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Fri, 10 Mar 2023 08:20:36 +0100 Subject: [PATCH] Deployment with docker compose #376 --- project/__init__.py | 2 +- tests/views/test_root.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/project/__init__.py b/project/__init__.py index 1b2c79a..44135c1 100644 --- a/project/__init__.py +++ b/project/__init__.py @@ -15,7 +15,7 @@ from flask_wtf.csrf import CSRFProtect from project.custom_session_interface import CustomSessionInterface -def getenv_bool(name: str, default: str = "False"): +def getenv_bool(name: str, default: str = "False"): # pragma: no cover return os.getenv(name, default).lower() in ("true", "1", "t") diff --git a/tests/views/test_root.py b/tests/views/test_root.py index 778e786..cd3a72c 100644 --- a/tests/views/test_root.py +++ b/tests/views/test_root.py @@ -12,6 +12,10 @@ def test_home(client, seeder, utils): utils.assert_response_redirect(response, "home") +def test_up(app, utils): + utils.get_ok("up") + + def test_organizations(client, seeder, utils): url = utils.get_url("organizations") utils.get_ok(url)