dda-devops-build/src/test/python/test_devops_build.py

21 lines
629 B
Python

import os
from pybuilder.core import Project
from src.main.python.ddadevops.domain.common import Devops
from src.main.python.ddadevops.devops_build import DevopsBuild
from .domain.test_helper import devops_config
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)
devops_build = DevopsBuild(project, devops_config({}))
devops_build.initialize_build_dir()
assert os.path.exists(f"{devops_build.build_path()}")