feat: Add branding change prompts and corresponding translations for restart notifications

This commit is contained in:
claudi 2026-04-15 11:49:09 +02:00
parent ca7105a6bc
commit 2ecd299f31
5 changed files with 79 additions and 15 deletions

View file

@ -9,11 +9,14 @@ from webdrop_bridge.config import Config, ConfigurationError
@pytest.fixture(autouse=True)
def clear_env():
def clear_env(tmp_path):
"""Clear environment variables before each test to avoid persistence."""
# Save current env
saved_env = os.environ.copy()
# Isolate runtime branding state from the developer machine
os.environ["WEBDROP_BRANDING_DIR"] = str(tmp_path / "branding")
# Clear relevant variables
for key in list(os.environ.keys()):
if key.startswith(