build: cleanup for new selenium and guards
tests / test (3.8) (push) Canceled after 0s
tests / test (3.9) (push) Canceled after 0s
tests / test (3.10) (push) Canceled after 0s
tests / test (3.11) (push) Canceled after 0s
tests / test (3.12) (push) Canceled after 0s
tests / test (3.13) (push) Canceled after 0s

This commit is contained in:
Mathew Sir Guest the best
2026-05-31 01:56:37 -06:00
parent bb7325008b
commit 0c8fa30145
2 changed files with 15 additions and 4 deletions
+11 -1
View File
@@ -1,7 +1,16 @@
import os
from smileyface.settings import AppSettings
def test_defaults():
def _clear_smileyface_env(monkeypatch):
for key in list(os.environ):
if key.startswith("SMILEYFACE_"):
monkeypatch.delenv(key, raising=False)
def test_defaults(monkeypatch):
_clear_smileyface_env(monkeypatch)
settings = AppSettings(_env_file=None)
assert settings.sqlite_filename == "smiles.db"
assert settings.skip_validate is False
@@ -9,6 +18,7 @@ def test_defaults():
def test_env_overrides(monkeypatch):
_clear_smileyface_env(monkeypatch)
monkeypatch.setenv("SMILEYFACE_PROJECT_DIR", "/srv/ut4")
monkeypatch.setenv("SMILEYFACE_SKIP_VALIDATE", "true")
settings = AppSettings(_env_file=None)