From 9d548b212232b41e101b36b714e144e4e26260b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christof=20K=C3=A4lin?= Date: Mon, 19 Feb 2024 15:38:19 +0100 Subject: [PATCH] Add just test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added test to justfile and some minor cosmetics for better readability * added args to "just test" --------- Co-authored-by: Christof Kälin --- justfile | 4 ++++ src/constants.py | 2 +- src/utils.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 808a090..daee7b1 100644 --- a/justfile +++ b/justfile @@ -46,3 +46,7 @@ mount-docker-backup *args: restore *args: docker compose exec app_db scripts/restore {{args}} + +test *args: + docker compose exec app pytest {{args}} + diff --git a/src/constants.py b/src/constants.py index 9497c37..630ec26 100644 --- a/src/constants.py +++ b/src/constants.py @@ -11,8 +11,8 @@ class Environment(str, Enum): LOCAL = "LOCAL" - STAGING = "STAGING" TESTING = "TESTING" + STAGING = "STAGING" PRODUCTION = "PRODUCTION" @property diff --git a/src/utils.py b/src/utils.py index f94b465..47d4092 100644 --- a/src/utils.py +++ b/src/utils.py @@ -3,6 +3,7 @@ import string logger = logging.getLogger(__name__) + ALPHA_NUM = string.ascii_letters + string.digits