From 38fe0ac7af7d72f1beac832771a4880f31cf8c13 Mon Sep 17 00:00:00 2001 From: Yuval Gabay Date: Mon, 24 Jun 2024 15:00:40 +0300 Subject: [PATCH] chore: Update test imports and fixtures in test files --- .gitignore | 1 + tests/{fixtures_anypath.py => conftest.py} | 0 tests/test_anypath_flows.py | 1 - tests/test_cli.py | 2 +- tests/test_copy_file_to_dir.py | 1 - tests/test_download_from_cloud.py | 1 - tests/test_iterdir_glob_rglob.py | 1 - tests/test_str_path_interoperability.py | 1 - tests/test_upload_to_cloud.py | 1 - 9 files changed, 2 insertions(+), 7 deletions(-) create mode 100644 .gitignore rename tests/{fixtures_anypath.py => conftest.py} (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e99e36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc \ No newline at end of file diff --git a/tests/fixtures_anypath.py b/tests/conftest.py similarity index 100% rename from tests/fixtures_anypath.py rename to tests/conftest.py diff --git a/tests/test_anypath_flows.py b/tests/test_anypath_flows.py index 06167f0..26d036b 100644 --- a/tests/test_anypath_flows.py +++ b/tests/test_anypath_flows.py @@ -2,7 +2,6 @@ from anypathlib import PathType, AnyPath from tests.tests_urls import PATH_TYPE_TO_HANDLER -from fixtures_anypath import temp_dir_with_files, clean_remote_dir @pytest.mark.usefixtures("temp_dir_with_files", "clean_remote_dir") diff --git a/tests/test_cli.py b/tests/test_cli.py index 6184292..fe78766 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -3,7 +3,7 @@ import pytest from anypathlib.cli import cli -from tests.fixtures_anypath import temp_dir_with_files, cli_runner, temp_local_dir +from tests.conftest import temp_dir_with_files, cli_runner, temp_local_dir FOLDER_NAME = 'folder' diff --git a/tests/test_copy_file_to_dir.py b/tests/test_copy_file_to_dir.py index 76f7908..6304edb 100644 --- a/tests/test_copy_file_to_dir.py +++ b/tests/test_copy_file_to_dir.py @@ -2,7 +2,6 @@ from anypathlib import PathType, AnyPath from tests.tests_urls import PATH_TYPE_TO_HANDLER -from fixtures_anypath import temp_local_dir, temp_dir_with_files, clean_remote_dir @pytest.mark.usefixtures("temp_dir_with_files", "temp_local_dir", "clean_remote_dir") diff --git a/tests/test_download_from_cloud.py b/tests/test_download_from_cloud.py index b00d285..29d882e 100644 --- a/tests/test_download_from_cloud.py +++ b/tests/test_download_from_cloud.py @@ -2,7 +2,6 @@ from anypathlib import PathType, AnyPath from tests.tests_urls import PATH_TYPE_TO_HANDLER -from fixtures_anypath import temp_local_dir, temp_dir_with_files, clean_remote_dir @pytest.mark.usefixtures("temp_dir_with_files", "temp_local_dir", "clean_remote_dir") diff --git a/tests/test_iterdir_glob_rglob.py b/tests/test_iterdir_glob_rglob.py index a06efa1..7041066 100644 --- a/tests/test_iterdir_glob_rglob.py +++ b/tests/test_iterdir_glob_rglob.py @@ -1,7 +1,6 @@ import pytest from anypathlib import PathType, AnyPath from tests.tests_urls import PATH_TYPE_TO_HANDLER -from fixtures_anypath import temp_dir_with_files, clean_remote_dir, temp_nested_dir @pytest.mark.usefixtures("temp_nested_dir", "clean_remote_dir") diff --git a/tests/test_str_path_interoperability.py b/tests/test_str_path_interoperability.py index 64e299d..2468ed7 100644 --- a/tests/test_str_path_interoperability.py +++ b/tests/test_str_path_interoperability.py @@ -3,7 +3,6 @@ import pytest from anypathlib import AnyPath, PathType -from fixtures_anypath import temp_local_dir, temp_dir_with_files, clean_remote_dir from tests.tests_urls import PATH_TYPE_TO_HANDLER diff --git a/tests/test_upload_to_cloud.py b/tests/test_upload_to_cloud.py index 9add7a0..8ef8ed2 100644 --- a/tests/test_upload_to_cloud.py +++ b/tests/test_upload_to_cloud.py @@ -2,7 +2,6 @@ from anypathlib import PathType, AnyPath from tests.tests_urls import PATH_TYPE_TO_HANDLER -from fixtures_anypath import temp_local_dir, temp_dir_with_files, clean_remote_dir @pytest.mark.usefixtures("temp_dir_with_files", "temp_local_dir", "clean_remote_dir")