Skip to content

Commit f8a6a94

Browse files
authored
tests: remove duplicate (#9281)
1 parent 9d9bcf1 commit f8a6a94

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

tests/console/commands/test_add.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,41 +1313,6 @@ def test_add_with_lock(
13131313
assert content_hash != app.poetry.locker.lock_data["metadata"]["content-hash"]
13141314

13151315

1316-
def test_add_to_section_that_does_no_exist_yet(
1317-
app: PoetryTestApplication,
1318-
repo: TestRepository,
1319-
tester: CommandTester,
1320-
) -> None:
1321-
repo.add_package(get_package("cachy", "0.1.0"))
1322-
repo.add_package(get_package("cachy", "0.2.0"))
1323-
1324-
tester.execute("cachy --group dev")
1325-
1326-
expected = """\
1327-
Using version ^0.2.0 for cachy
1328-
1329-
Updating dependencies
1330-
Resolving dependencies...
1331-
1332-
Package operations: 1 install, 0 updates, 0 removals
1333-
1334-
- Installing cachy (0.2.0)
1335-
1336-
Writing lock file
1337-
"""
1338-
1339-
assert tester.io.fetch_output() == expected
1340-
1341-
assert isinstance(tester.command, InstallerCommand)
1342-
assert tester.command.installer.executor.installations_count == 1
1343-
1344-
pyproject: dict[str, Any] = app.poetry.file.read()
1345-
content = pyproject["tool"]["poetry"]
1346-
1347-
assert "cachy" in content["group"]["dev"]["dependencies"]
1348-
assert content["group"]["dev"]["dependencies"]["cachy"] == "^0.2.0"
1349-
1350-
13511316
def test_add_keyboard_interrupt_restore_content(
13521317
poetry_with_up_to_date_lockfile: Poetry,
13531318
repo: TestRepository,

0 commit comments

Comments
 (0)