From 355c457d57a7b87004c52616067177bf7f0bc97f Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 14 Jul 2023 12:41:54 +0200 Subject: [PATCH] add an test --- src/test/python/domain/test_devops_factory.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/python/domain/test_devops_factory.py b/src/test/python/domain/test_devops_factory.py index ceb12a1..b9f4008 100644 --- a/src/test/python/domain/test_devops_factory.py +++ b/src/test/python/domain/test_devops_factory.py @@ -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={})