mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
Fix version tests (#4329)
Tests had checks for python version number, expecting it to be only single digits, which was failing for me on 3.6.10 and might fail in the future with Python 3.10. I adjusted it to expect minor and patch version to be of multiple digits.
This commit is contained in:
@@ -17,7 +17,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"Platform: Python \d\.\d\.\d on .*", 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)
|
||||
|
||||
@@ -61,7 +61,7 @@ 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"Platform: Python \d\.\d\.\d on .*", 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)
|
||||
assert "Repo:" not in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user