|
|
@ -5,9 +5,10 @@ from src.main.python.ddadevops import DevopsBuild
|
|
|
|
from .domain.helper import devops_config
|
|
|
|
from .domain.helper import devops_config
|
|
|
|
from .resource_helper import copy_resource
|
|
|
|
from .resource_helper import copy_resource
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_devops_build(tmp_path):
|
|
|
|
def test_devops_build(tmp_path):
|
|
|
|
str_tmp_path = str(tmp_path)
|
|
|
|
str_tmp_path = str(tmp_path)
|
|
|
|
copy_resource(Path('package.json'), tmp_path)
|
|
|
|
copy_resource(Path("package.json"), tmp_path)
|
|
|
|
project = Project(str_tmp_path, name="name")
|
|
|
|
project = Project(str_tmp_path, name="name")
|
|
|
|
|
|
|
|
|
|
|
|
devops_build = DevopsBuild(
|
|
|
|
devops_build = DevopsBuild(
|
|
|
@ -15,6 +16,8 @@ def test_devops_build(tmp_path):
|
|
|
|
devops_config(
|
|
|
|
devops_config(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"project_root_path": str_tmp_path,
|
|
|
|
"project_root_path": str_tmp_path,
|
|
|
|
|
|
|
|
"build_types": [],
|
|
|
|
|
|
|
|
"mixin_types": [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|