Skip to content

Commit

Permalink
Clear cache in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Dec 13, 2024
1 parent da7200d commit 69dfaaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/automation/codebase/test_repo_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
from seer.automation.models import RepoDefinition


@pytest.fixture(autouse=True)
def clear_repo_client_cache():
"""Clear the RepoClient.from_repo_definition cache before each test"""
RepoClient.from_repo_definition.cache_clear()
yield


@pytest.fixture
def mock_github():
with patch("seer.automation.codebase.repo_client.Github") as mock:
Expand Down

0 comments on commit 69dfaaa

Please sign in to comment.