From d07e94e8ab9a9dfce8357783b761b7ea26cc10b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sun, 7 Apr 2024 12:59:50 +0200 Subject: [PATCH] tests: remove duplicate --- tests/console/commands/test_add.py | 35 ------------------------------ 1 file changed, 35 deletions(-) diff --git a/tests/console/commands/test_add.py b/tests/console/commands/test_add.py index 8f60649cca0..4287e5dc214 100644 --- a/tests/console/commands/test_add.py +++ b/tests/console/commands/test_add.py @@ -1313,41 +1313,6 @@ def test_add_with_lock( assert content_hash != app.poetry.locker.lock_data["metadata"]["content-hash"] -def test_add_to_section_that_does_no_exist_yet( - app: PoetryTestApplication, - repo: TestRepository, - tester: CommandTester, -) -> None: - repo.add_package(get_package("cachy", "0.1.0")) - repo.add_package(get_package("cachy", "0.2.0")) - - tester.execute("cachy --group dev") - - expected = """\ -Using version ^0.2.0 for cachy - -Updating dependencies -Resolving dependencies... - -Package operations: 1 install, 0 updates, 0 removals - - - Installing cachy (0.2.0) - -Writing lock file -""" - - assert tester.io.fetch_output() == expected - - assert isinstance(tester.command, InstallerCommand) - assert tester.command.installer.executor.installations_count == 1 - - pyproject: dict[str, Any] = app.poetry.file.read() - content = pyproject["tool"]["poetry"] - - assert "cachy" in content["group"]["dev"]["dependencies"] - assert content["group"]["dev"]["dependencies"]["cachy"] == "^0.2.0" - - def test_add_keyboard_interrupt_restore_content( poetry_with_up_to_date_lockfile: Poetry, repo: TestRepository,