Skip to content

Commit

Permalink
Rearrange asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
estyxx committed May 13, 2022
1 parent 7f6583c commit 2380446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/console/commands/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test_short_version_update(tester: CommandTester):
def test_dry_run(tester: CommandTester):
old_pyproject = tester.command.poetry.file.path.read_text()
tester.execute("--dry-run major")
assert tester.io.fetch_output() == "Bumping version from 1.2.3 to 2.0.0\n"

new_pyproject = tester.command.poetry.file.path.read_text()
assert tester.io.fetch_output() == "Bumping version from 1.2.3 to 2.0.0\n"
assert old_pyproject == new_pyproject

0 comments on commit 2380446

Please sign in to comment.