diff --git a/src/test/python/release_mixin/test_infrastructure.py b/src/test/python/release_mixin/test_infrastructure.py index fefe233..da427b3 100644 --- a/src/test/python/release_mixin/test_infrastructure.py +++ b/src/test/python/release_mixin/test_infrastructure.py @@ -79,5 +79,8 @@ def test_release_type_repository_env(): assert release_type == None sut = ReleaseTypeRepository.from_environment(MockEnvironmentApi({'REL_TYPE': 'Not the right variable'})) - release_type = sut.get_release_type() - assert release_type == None \ No newline at end of file + try: + release_type = sut.get_release_type() + except: + assert release_type == None + \ No newline at end of file