Fuehre die Pflicht-Suite nach dem Dev-Deploy gegen tsumugu_test auf der bestehenden Dev-Postgres aus.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b328385561
commit
0924e28fce
8 files changed
+125
-88
No files matched your search
+13
-1
@@ -47,8 +47,20 @@ trailer<</Root 1 0 R>>
|
||||
"""
|
||||
|
||||
|
||||
_LIVE_DATABASES = frozenset({"tsumugu", "tsumugu_dev", "postgres", "template0", "template1"})
|
||||
|
||||
|
||||
def is_test_database(name: str) -> bool:
|
||||
lowered = name.strip().lower()
|
||||
return bool(lowered) and lowered.endswith("_test") and lowered not in _LIVE_DATABASES
|
||||
|
||||
|
||||
def demo_allowed(settings: Settings) -> bool:
|
||||
return settings.tsumugu_env == "development" and settings.db_name == "tsumugu_pytest" and settings.seed_demo
|
||||
return (
|
||||
settings.tsumugu_env == "development"
|
||||
and is_test_database(settings.db_name)
|
||||
and settings.seed_demo
|
||||
)
|
||||
|
||||
|
||||
def demo_public(settings: Settings) -> dict:
|
||||
|
||||
Reference in new issue
Block a user