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