Skip to content

Commit 26b75af

Browse files
committed
revert old test after fixing version warn
1 parent 7a5a4be commit 26b75af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cloudsmith_cli/cli/tests/commands/test_main.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ def test_main_version(self, runner, option):
1111
"""Test the output of `cloudsmith --version`."""
1212
result = runner.invoke(main, [option])
1313
assert result.exit_code == 0
14-
15-
assert "CLI Package Version: " + get_version() in result.output
16-
assert "API Package Version: " + get_api_version() in result.output
14+
assert (
15+
result.output == "Versions:\n"
16+
"CLI Package Version: " + get_version() + "\n"
17+
"API Package Version: " + get_api_version() + "\n"
18+
)
1719

1820
@pytest.mark.parametrize("option", ["-h", "--help"])
1921
def test_main_help(self, runner, option):

0 commit comments

Comments
 (0)