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

13 lines
479 B
Python
Raw Normal View History

2023-03-09 13:25:25 +01:00
from pathlib import Path
2023-03-17 11:29:25 +01:00
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemApi
2023-03-09 13:25:25 +01:00
class Helper():
def __init__(self, file_name = 'config.json'):
self.TEST_FILE_NAME = file_name
self.TEST_FILE_ROOT = Path('src/test/resources/')
2023-03-09 13:25:25 +01:00
self.TEST_FILE_PATH = self.TEST_FILE_ROOT / self.TEST_FILE_NAME
def copy_files(self, source: Path, target: Path):
2023-03-17 11:29:25 +01:00
api = SystemApi()
2023-03-09 13:25:25 +01:00
api.run_checked('cp', source, target)