aboutsummaryrefslogtreecommitdiff
path: root/jb/config.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-10 01:00:39 -0700
committerMax Nanis2026-09-10 01:00:39 -0700
commit4dca7296742b607e74f16e2f6484c51163a41ace (patch)
tree0839c16d0905deb587d3ee25ff93fd3ccf7eeeb6 /jb/config.py
parent832aecaddce80e312095ecdb572d7756eb9df5e9 (diff)
downloadamt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.tar.gz
amt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.zip
using model_validator on GRLSettings. Allows null default values, then to asser them on load. Required so pydantic_settings can be loaded in tests without params
Diffstat (limited to 'jb/config.py')
-rw-r--r--jb/config.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/jb/config.py b/jb/config.py
index 359f108..7993f53 100644
--- a/jb/config.py
+++ b/jb/config.py
@@ -1,17 +1,8 @@
import logging
-from generalresearch.config import is_debug
+from jb.settings import get_settings
-from jb.settings import get_settings, get_test_settings
-
-if is_debug():
- print("running using TEST settings")
- settings = get_test_settings()
- assert settings.debug is True
-else:
- print("running using PROD settings")
- settings = get_settings()
- assert settings.debug is False
+settings = get_settings()
if settings.debug:
LOG_LEVEL = logging.DEBUG