Condense copy logic into helper script
This commit is contained in:
parent
dfddd5ee33
commit
2c2f528371
1 changed files with 10 additions and 0 deletions
10
src/main/python/ddadevops/release-mixin/test/test_helper.py
Normal file
10
src/main/python/ddadevops/release-mixin/test/test_helper.py
Normal 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)
|
Loading…
Reference in a new issue