From a48a19ce316668be9e045b3d29c628830a068a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Sun, 6 Nov 2022 21:25:54 +0545 Subject: [PATCH] tests: ignore versions for subprojects --- tests/func/test_version.py | 2 +- tests/unit/test_info.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/func/test_version.py b/tests/func/test_version.py index 22cbe4101..8ca3f9ffe 100644 --- a/tests/func/test_version.py +++ b/tests/func/test_version.py @@ -16,7 +16,7 @@ def test_(tmp_dir, dvc, scm, capsys): assert re.search(rf"DVC version: {DVC_VERSION_REGEX}", out) assert re.search(f"Platform: {PYTHON_VERSION_REGEX} on .*", out) for subproject in SUBPROJECTS: - assert re.search(rf"{subproject} = {DVC_VERSION_REGEX}", out) + assert re.search(rf"{subproject} = .*", out) assert find_supported_remotes(out) assert re.search(r"Cache types: .*", out) diff --git a/tests/unit/test_info.py b/tests/unit/test_info.py index 62a58d1e8..b45ea4f88 100644 --- a/tests/unit/test_info.py +++ b/tests/unit/test_info.py @@ -54,7 +54,7 @@ def test_info_in_repo(scm_init, tmp_dir): assert re.search(rf"DVC version: {DVC_VERSION_REGEX}", dvc_info) assert re.search(f"Platform: {PYTHON_VERSION_REGEX} on .*", dvc_info) for subproject in SUBPROJECTS: - assert re.search(rf"{subproject} = {DVC_VERSION_REGEX}", dvc_info) + assert re.search(rf"{subproject} = .*", dvc_info) assert find_supported_remotes(dvc_info) assert re.search(r"Cache types: .*", dvc_info)