From 3a9d0244b50cb7b9fdf8810cb95c4e222e4b05ae Mon Sep 17 00:00:00 2001 From: Ronan Lamy Date: Fri, 30 Sep 2022 14:53:04 +0100 Subject: [PATCH] test: rename dvc.testing.test_*.py so pytest doesn't handle them as test files --- dvc/testing/{test_api.py => api_tests.py} | 0 dvc/testing/{test_remote.py => remote_tests.py} | 0 dvc/testing/{test_workspace.py => workspace_tests.py} | 0 tests/func/api/test_data.py | 4 +++- tests/func/test_add.py | 2 +- tests/func/test_data_cloud.py | 2 +- tests/func/test_import_url.py | 2 +- 7 files changed, 6 insertions(+), 4 deletions(-) rename dvc/testing/{test_api.py => api_tests.py} (100%) rename dvc/testing/{test_remote.py => remote_tests.py} (100%) rename dvc/testing/{test_workspace.py => workspace_tests.py} (100%) diff --git a/dvc/testing/test_api.py b/dvc/testing/api_tests.py similarity index 100% rename from dvc/testing/test_api.py rename to dvc/testing/api_tests.py diff --git a/dvc/testing/test_remote.py b/dvc/testing/remote_tests.py similarity index 100% rename from dvc/testing/test_remote.py rename to dvc/testing/remote_tests.py diff --git a/dvc/testing/test_workspace.py b/dvc/testing/workspace_tests.py similarity index 100% rename from dvc/testing/test_workspace.py rename to dvc/testing/workspace_tests.py diff --git a/tests/func/api/test_data.py b/tests/func/api/test_data.py index 614b2cf988..8815764ec9 100644 --- a/tests/func/api/test_data.py +++ b/tests/func/api/test_data.py @@ -9,7 +9,9 @@ OutputNotFoundError, PathMissingError, ) -from dvc.testing.test_api import TestAPI # noqa, pylint: disable=unused-import +from dvc.testing.api_tests import ( # noqa, pylint: disable=unused-import + TestAPI, +) from dvc.testing.tmp_dir import make_subrepo from dvc.utils.fs import remove diff --git a/tests/func/test_add.py b/tests/func/test_add.py index b2d9f7bf5b..960cdaf858 100644 --- a/tests/func/test_add.py +++ b/tests/func/test_add.py @@ -34,7 +34,7 @@ StageExternalOutputsError, StagePathNotFoundError, ) -from dvc.testing.test_workspace import TestAdd +from dvc.testing.workspace_tests import TestAdd from dvc.utils import LARGE_DIR_SIZE, relpath from dvc.utils.fs import path_isin from dvc.utils.serialize import YAMLFileCorruptedError, load_yaml diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py index a5d56db52b..f864fb73c3 100644 --- a/tests/func/test_data_cloud.py +++ b/tests/func/test_data_cloud.py @@ -9,7 +9,7 @@ from dvc.cli import main from dvc.external_repo import clean_repos from dvc.stage.exceptions import StageNotFound -from dvc.testing.test_remote import ( # noqa, pylint: disable=unused-import +from dvc.testing.remote_tests import ( # noqa, pylint: disable=unused-import TestRemote, ) from dvc.utils.fs import remove diff --git a/tests/func/test_import_url.py b/tests/func/test_import_url.py index 9aea7e1bac..795327f7f5 100644 --- a/tests/func/test_import_url.py +++ b/tests/func/test_import_url.py @@ -10,7 +10,7 @@ from dvc.dependency.base import Dependency, DependencyDoesNotExistError from dvc.exceptions import InvalidArgumentError from dvc.stage import Stage -from dvc.testing.test_workspace import TestImport as _TestImport +from dvc.testing.workspace_tests import TestImport as _TestImport from dvc.utils.fs import makedirs from tests.basic_env import TestDvc