|
|
@ -70,15 +70,21 @@ def build_devops(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BuildFileRepositoryMock:
|
|
|
|
class BuildFileRepositoryMock:
|
|
|
|
def get(self, path: Path) -> BuildFile:
|
|
|
|
def __init__(self, file_name=None):
|
|
|
|
return BuildFile(
|
|
|
|
if file_name:
|
|
|
|
Path("./package.json"),
|
|
|
|
self.file_path = Path(f"./src/test/resources/{file_name}")
|
|
|
|
"""
|
|
|
|
with open(self.file_path, "r", encoding="utf-8") as input_file:
|
|
|
|
|
|
|
|
self.content = input_file.read()
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.file_path = Path("./package.json")
|
|
|
|
|
|
|
|
self.content = """
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"version": "1.1.5-SNAPSHOT"
|
|
|
|
"version": "1.1.5-SNAPSHOT"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
""",
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def get(self, path: Path) -> BuildFile:
|
|
|
|
|
|
|
|
return BuildFile(self.file_path, self.content)
|
|
|
|
|
|
|
|
|
|
|
|
def write(self, build_file: BuildFile):
|
|
|
|
def write(self, build_file: BuildFile):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|