We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79d671 commit e142b2aCopy full SHA for e142b2a
tests/conftest.py
@@ -60,7 +60,11 @@ def mock_gitguardian_client():
60
@pytest.fixture(autouse=True)
61
def mock_env_vars():
62
"""Automatically mock environment variables for all tests."""
63
- with patch.dict(os.environ, {"GITGUARDIAN_URL": "https://test.api.gitguardian.com"}):
+ env_overrides = {
64
+ "GITGUARDIAN_URL": "https://test.api.gitguardian.com",
65
+ "GITGUARDIAN_PERSONAL_ACCESS_TOKEN": "", # Clear PAT to test OAuth paths
66
+ }
67
+ with patch.dict(os.environ, env_overrides):
68
yield
69
70
0 commit comments