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 @@ -18,6 +18,12 @@ def requests_adapter() -> Iterator[requests_mock.Adapter]:
yield adapter


@pytest.fixture(autouse=True)
def ensure_no_stacklet_api_key_env(monkeypatch) -> None:
"""Ensure STACKLET_API_KEY doesn't come set from the env during tests."""
monkeypatch.delenv("STACKLET_API_KEY", raising=False)


@pytest.fixture(autouse=True)
def default_stacklet_dir(tmp_path_factory) -> Iterator[Path]:
"""A default .stacklet directory for testing."""
Expand Down