Skip to content

Commit 7f6583c

Browse files
committed
Update test
1 parent 883e6ea commit 7f6583c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: tests/console/commands/test_version.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def test_short_version_update(tester: CommandTester):
7979

8080

8181
def test_dry_run(tester: CommandTester):
82-
content = tester.command.poetry.file.path.read_text()
82+
old_pyproject = tester.command.poetry.file.path.read_text()
8383
tester.execute("--dry-run major")
84-
assert content == tester.command.poetry.file.path.read_text()
84+
assert tester.io.fetch_output() == "Bumping version from 1.2.3 to 2.0.0\n"
85+
new_pyproject = tester.command.poetry.file.path.read_text()
86+
assert old_pyproject == new_pyproject

0 commit comments

Comments
 (0)