Skip to content

Commit

Permalink
tests: fix version check on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Aug 1, 2020
1 parent 4061b74 commit b823ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/func/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_info_in_repo(scm_init, tmp_dir, caplog):

assert main(["version"]) == 0

assert re.search(r"DVC version: \d+\.\d+\.\d+\+.*", caplog.text)
assert re.search(r"DVC version: \d+\.\d+\.\d+.*", caplog.text)
assert re.search(r"Platform: Python \d\.\d\.\d on .*", caplog.text)
assert re.search(r"Supports: .*", caplog.text)
assert re.search(r"Cache types: .*", caplog.text)
Expand Down Expand Up @@ -60,7 +60,7 @@ def test_fs_info_in_repo(tmp_dir, dvc, caplog):
def test_info_outside_of_repo(tmp_dir, caplog):
assert main(["version"]) == 0

assert re.search(r"DVC version: \d+\.\d+\.\d+\+.*", caplog.text)
assert re.search(r"DVC version: \d+\.\d+\.\d+.*", caplog.text)
assert re.search(r"Platform: Python \d\.\d\.\d on .*", caplog.text)
assert re.search(r"Supports: .*", caplog.text)
assert not re.search(r"Cache types: .*", caplog.text)
Expand Down

0 comments on commit b823ce4

Please sign in to comment.