diff --git a/src/main/python/ddadevops/release-mixin/test/helper.py b/src/main/python/ddadevops/release-mixin/test/helper.py new file mode 100644 index 0000000..7b8ccfb --- /dev/null +++ b/src/main/python/ddadevops/release-mixin/test/helper.py @@ -0,0 +1,13 @@ +from pathlib import Path +from infrastructure_api import SystemAPI + + +class Helper(): + def __init__(self, file_name = 'config.json'): + self.TEST_FILE_NAME = file_name + self.TEST_FILE_ROOT = Path('test/resources/') + self.TEST_FILE_PATH = self.TEST_FILE_ROOT / self.TEST_FILE_NAME + + def copy_files(self, source: Path, target: Path): + api = SystemAPI() + api.run_checked('cp', source, target) \ No newline at end of file diff --git a/src/main/python/ddadevops/release-mixin/test/test_helper.py b/src/main/python/ddadevops/release-mixin/test/test_helper.py deleted file mode 100644 index cd4bce4..0000000 --- a/src/main/python/ddadevops/release-mixin/test/test_helper.py +++ /dev/null @@ -1,10 +0,0 @@ -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