1
0
Fork 0
mirror of synced 2024-05-20 12:12:40 +12:00

Fix clone integration test setup

This commit is contained in:
Serene-Arc 2022-09-03 10:47:58 +10:00
parent d60b4e7fdd
commit 0767da14c2

View file

@ -17,11 +17,12 @@ def copy_test_config(run_path: Path):
def create_basic_args_for_cloner_runner(test_args: list[str], tmp_path: Path):
copy_test_config(tmp_path)
out = [
'clone',
str(tmp_path),
'-v',
'--config', 'test_config.cfg',
'--config', str(Path(tmp_path, 'test_config.cfg')),
'--log', str(Path(tmp_path, 'test_log.txt')),
] + test_args
return out
@ -33,6 +34,8 @@ def create_basic_args_for_cloner_runner(test_args: list[str], tmp_path: Path):
@pytest.mark.parametrize('test_args', (
['-l', 'm2601g'],
['-s', 'TrollXChromosomes/', '-L', 1],
['-l', 'tr79b'],
['-l', 'tr6ky'],
))
def test_cli_scrape_general(test_args: list[str], tmp_path: Path):
runner = CliRunner()