Skip to content

Commit

Permalink
clear functools cache on each test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Mar 3, 2024
1 parent b879733 commit 2088155
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from poetry.config.dict_config_source import DictConfigSource
from poetry.factory import Factory
from poetry.layouts import layout
from poetry.packages.direct_origin import _get_package_from_git
from poetry.repositories import Repository
from poetry.repositories import RepositoryPool
from poetry.utils.cache import ArtifactCache
Expand Down Expand Up @@ -298,6 +299,8 @@ def git_mock(mocker: MockerFixture) -> None:
p = mocker.patch("poetry.vcs.git.Git.get_revision")
p.return_value = MOCK_DEFAULT_GIT_REVISION

_get_package_from_git.cache_clear()


@pytest.fixture
def http() -> Iterator[type[httpretty.httpretty]]:
Expand Down

0 comments on commit 2088155

Please sign in to comment.