Skip to content

Commit

Permalink
Merge pull request #250 from maresb/fix-version-test
Browse files Browse the repository at this point in the history
Fix version test which fails in local development
  • Loading branch information
mariusvniekerk authored Oct 8, 2022
2 parents 1823cbe + 7b5e06f commit d29fc5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,4 +1365,8 @@ def test_cli_version(capsys: "pytest.CaptureFixture[str]"):
print(result.stdout, file=sys.stdout)
print(result.stderr, file=sys.stderr)
assert result.exit_code == 0
assert __version__ in result.stdout
# Sometimes __version__ looks like "0.11.3.dev370+g315f170" and the part after
# ".dev" is often out-of-sync when doing local development. So we check only for
# the part before, in this case just "0.11.3".
version_without_dev = __version__.split(".dev")[0]
assert version_without_dev in result.stdout

0 comments on commit d29fc5b

Please sign in to comment.