From 607d9634508f3b71674d4538c09f42d5471c6298 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sat, 23 Jul 2022 17:14:36 +1000 Subject: [PATCH] Change file paths for test resource --- tests/integration_tests/test_archive_integration.py | 6 +++--- tests/integration_tests/test_clone_integration.py | 4 ++-- tests/integration_tests/test_download_integration.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/integration_tests/test_archive_integration.py b/tests/integration_tests/test_archive_integration.py index 744e343..7b9a48d 100644 --- a/tests/integration_tests/test_archive_integration.py +++ b/tests/integration_tests/test_archive_integration.py @@ -10,11 +10,11 @@ from click.testing import CliRunner from bdfr.__main__ import cli -does_test_config_exist = Path('../test_config.cfg').exists() +does_test_config_exist = Path('./tests/test_config.cfg').exists() def copy_test_config(run_path: Path): - shutil.copy(Path('../test_config.cfg'), Path(run_path, '../test_config.cfg')) + shutil.copy(Path('./tests/test_config.cfg'), Path(run_path, 'test_config.cfg')) def create_basic_args_for_archive_runner(test_args: list[str], run_path: Path): @@ -23,7 +23,7 @@ def create_basic_args_for_archive_runner(test_args: list[str], run_path: Path): 'archive', str(run_path), '-v', - '--config', str(Path(run_path, '../test_config.cfg')), + '--config', str(Path(run_path, 'test_config.cfg')), '--log', str(Path(run_path, 'test_log.txt')), ] + test_args return out diff --git a/tests/integration_tests/test_clone_integration.py b/tests/integration_tests/test_clone_integration.py index 343b2d3..22c1988 100644 --- a/tests/integration_tests/test_clone_integration.py +++ b/tests/integration_tests/test_clone_integration.py @@ -9,11 +9,11 @@ from click.testing import CliRunner from bdfr.__main__ import cli -does_test_config_exist = Path('../test_config.cfg').exists() +does_test_config_exist = Path('./tests/test_config.cfg').exists() def copy_test_config(run_path: Path): - shutil.copy(Path('../test_config.cfg'), Path(run_path, '../test_config.cfg')) + shutil.copy(Path('./tests/test_config.cfg'), Path(run_path, 'test_config.cfg')) def create_basic_args_for_cloner_runner(test_args: list[str], tmp_path: Path): diff --git a/tests/integration_tests/test_download_integration.py b/tests/integration_tests/test_download_integration.py index ffae0d4..93d9392 100644 --- a/tests/integration_tests/test_download_integration.py +++ b/tests/integration_tests/test_download_integration.py @@ -9,11 +9,11 @@ from click.testing import CliRunner from bdfr.__main__ import cli -does_test_config_exist = Path('../test_config.cfg').exists() +does_test_config_exist = Path('./tests/test_config.cfg').exists() def copy_test_config(run_path: Path): - shutil.copy(Path('../test_config.cfg'), Path(run_path, '../test_config.cfg')) + shutil.copy(Path('./tests/test_config.cfg'), Path(run_path, './test_config.cfg')) def create_basic_args_for_download_runner(test_args: list[str], run_path: Path): @@ -21,7 +21,7 @@ def create_basic_args_for_download_runner(test_args: list[str], run_path: Path): out = [ 'download', str(run_path), '-v', - '--config', str(Path(run_path, '../test_config.cfg')), + '--config', str(Path(run_path, './test_config.cfg')), '--log', str(Path(run_path, 'test_log.txt')), ] + test_args return out