From 2c2f52837169692ceb4f482139235bf1fdefe390 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 9 Mar 2023 13:13:47 +0100 Subject: [PATCH] Condense copy logic into helper script --- .../python/ddadevops/release-mixin/test/test_helper.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/python/ddadevops/release-mixin/test/test_helper.py diff --git a/src/main/python/ddadevops/release-mixin/test/test_helper.py b/src/main/python/ddadevops/release-mixin/test/test_helper.py new file mode 100644 index 0000000..cd4bce4 --- /dev/null +++ b/src/main/python/ddadevops/release-mixin/test/test_helper.py @@ -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) \ No newline at end of file