Skip to content

Commit 2f2bd74

Browse files
committed
fixed tests
1 parent 67c82e1 commit 2f2bd74

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cloudsmith_cli/cli/tests/commands/test_main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ 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-
assert (
15-
result.output == "Versions:\n"
16-
"CLI Package Version: " + get_version() + "\n"
17-
"API Package Version: " + get_api_version() + "\n"
18-
)
14+
15+
assert "CLI Package Version: " + get_version() in result.output
16+
assert "API Package Version: " + get_api_version() in result.output
1917

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

0 commit comments

Comments
 (0)