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 23, 2024
1 parent d6a23c4 commit 2b56f4c
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 @@ -26,6 +26,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 @@ -300,6 +301,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 2b56f4c

Please sign in to comment.