Skip to content

Commit 2088155

Browse files
committed
clear functools cache on each test
1 parent b879733 commit 2088155

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from poetry.config.dict_config_source import DictConfigSource
2525
from poetry.factory import Factory
2626
from poetry.layouts import layout
27+
from poetry.packages.direct_origin import _get_package_from_git
2728
from poetry.repositories import Repository
2829
from poetry.repositories import RepositoryPool
2930
from poetry.utils.cache import ArtifactCache
@@ -298,6 +299,8 @@ def git_mock(mocker: MockerFixture) -> None:
298299
p = mocker.patch("poetry.vcs.git.Git.get_revision")
299300
p.return_value = MOCK_DEFAULT_GIT_REVISION
300301

302+
_get_package_from_git.cache_clear()
303+
301304

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

0 commit comments

Comments
 (0)