dda-devops-build/src/test/python/release_mixin/helper.py

13 lines
No EOL
479 B
Python

from pathlib import Path
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemApi
class Helper():
def __init__(self, file_name = 'config.json'):
self.TEST_FILE_NAME = file_name
self.TEST_FILE_ROOT = Path('src/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)