Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ def isolate_tests(monkeypatch: pytest.MonkeyPatch, temp_config_dir: Path) -> Non
# Ensure we don't make real API calls
monkeypatch.setenv("WORKATO_TEST_MODE", "1")

# Clear environment variables that tests expect to control explicitly
# This prevents shell environment from affecting test behavior
monkeypatch.delenv("WORKATO_API_TOKEN", raising=False)
monkeypatch.delenv("WORKATO_HOST", raising=False)
monkeypatch.delenv("WORKATO_PROFILE", raising=False)

# Note: Keyring mocking is handled by individual test fixtures when needed

# Mock Path.home() to use temp directory for ProfileManager
Expand Down