fix: clear TOTP secret in test for proper isolation
Run Tests / Backend Tests (push) Failing after 1m28s
Run Tests / Frontend Tests (push) Failing after 3m50s
Run Tests / Test Summary (push) Failing after 32s

This commit is contained in:
Gan, Jimmy
2026-04-04 13:37:11 +08:00
parent 3942a344c7
commit 6285f03c36
@@ -204,6 +204,9 @@ class TestTOTP:
def test_load_totp_secret_from_env(self, mock_config, temp_auth_file, monkeypatch):
"""Test loading TOTP secret from environment variable."""
# Clear any existing secret in file first
save_totp_secret("")
monkeypatch.setenv("TOTP_SECRET", "ENV_SECRET_KEY")
import importlib
import config