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

21 lines
538 B
Python
Raw Normal View History

2023-03-14 15:43:41 +00:00
import os
from pybuilder.core import Project
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
def test_devops_build(tmp_path):
tmp_path_str = str(tmp_path)
2023-04-30 09:29:17 +00:00
project = Project(tmp_path_str, name="name")
devops_build = DevopsBuild(
project,
devops_config(
{
"project_root_path": tmp_path_str,
}
),
)
2023-03-14 15:43:41 +00:00
devops_build.initialize_build_dir()
assert os.path.exists(f"{devops_build.build_path()}")