2023-03-14 15:43:41 +00:00
|
|
|
import os
|
|
|
|
from pybuilder.core import Project
|
2023-03-17 16:27:36 +00:00
|
|
|
from src.main.python.ddadevops.domain.common import Devops
|
2023-03-14 15:43:41 +00:00
|
|
|
from src.main.python.ddadevops.devops_build import DevopsBuild
|
2023-04-28 16:26:02 +00:00
|
|
|
from .domain.test_helper import devops_config
|
2023-03-14 15:43:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MyDevopsBuild(DevopsBuild):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def test_devops_build(tmp_path):
|
|
|
|
build_dir = "build"
|
|
|
|
project_name = "testing-project"
|
|
|
|
module_name = "c4k-test"
|
|
|
|
tmp_path_str = str(tmp_path)
|
|
|
|
|
|
|
|
project = Project(tmp_path_str, name=project_name)
|
2023-04-28 16:26:02 +00:00
|
|
|
devops_build = DevopsBuild(project, devops_config({}))
|
2023-03-14 15:43:41 +00:00
|
|
|
devops_build.initialize_build_dir()
|
|
|
|
assert os.path.exists(f"{devops_build.build_path()}")
|