fixed pytest

This commit is contained in:
Clemens 2023-03-31 15:03:49 +02:00
parent 50a722794c
commit 6ede2528c2

View file

@ -40,7 +40,8 @@ class DevopsBuild:
self.project = project
self.file_api = FileApi()
self.repo = ProjectRepository()
if not devops and config:
if not devops:
if not config: raise Exception("Build parameters could not be set!")
devops = Devops(
stage=config["stage"],
project_root_path=config["project_root_path"],
@ -48,8 +49,6 @@ class DevopsBuild:
name=project.name,
build_dir_name=config["build_dir_name"],
)
else:
raise Exception("Build parameters could not be set!")
self.repo.set_devops(self.project, devops)
self.repo.set_build(self.project, self)