Condense copy logic into helper script

This commit is contained in:
erik 2023-03-09 13:13:47 +01:00
parent dfddd5ee33
commit 2c2f528371

View file

@ -0,0 +1,10 @@
from pathlib import Path
from infrastructure_api import SystemAPI
TEST_FILE_NAME = 'config.json'
TEST_FILE_ROOT = Path('test/resources/')
TEST_FILE_PATH = TEST_FILE_ROOT / TEST_FILE_NAME
def copy_files(source: Path, target: Path):
api = SystemAPI()
api.run_checked('cp', source, target)