add an test

This commit is contained in:
Michael Jerger 2023-07-14 12:41:54 +02:00
parent 9cb77f395f
commit 355c457d57

View file

@ -7,7 +7,7 @@ from src.main.python.ddadevops.domain import (
)
def test_devops_factory():
def test_devops_creation():
with pytest.raises(Exception):
DevopsFactory().build_devops({"build_types": ["NOTEXISTING"]})
@ -66,3 +66,8 @@ def test_devops_factory():
)
assert sut is not None
assert sut.mixins[MixinType.RELEASE] is not None
def test_on_merge_input_should_win():
sut = DevopsFactory()
assert {'tag': 'inp'} == sut.merge(inp = {'tag': 'inp'}, context = {'tag': 'context'}, authorization={})