From e92dc8ea2f7377d6042a119bc83318724f180ad1 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 25 Jun 2022 14:41:33 +0100 Subject: [PATCH] make sure that repositories are named --- tests/conftest.py | 4 ++-- tests/test_exporter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 976be6c..2a9a466 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -125,12 +125,12 @@ def _fixture_dir(name: str) -> Path: @pytest.fixture() def repo() -> Repository: - return Repository() + return Repository("repo") @pytest.fixture def installed() -> Repository: - return Repository() + return Repository("installed") @pytest.fixture(scope="session") diff --git a/tests/test_exporter.py b/tests/test_exporter.py index 3eca09a..fe6fca8 100644 --- a/tests/test_exporter.py +++ b/tests/test_exporter.py @@ -1724,13 +1724,13 @@ def test_exporter_exports_requirements_txt_with_legacy_packages_and_duplicate_so ) -> None: poetry.pool.add_repository( LegacyRepository( - "custom", + "custom-example", "https://example.com/simple", ) ) poetry.pool.add_repository( LegacyRepository( - "custom", + "custom-foobaz", "https://foobaz.com/simple", ) )