Fix CI: Test for Exception rather than None

This commit is contained in:
erik 2023-04-19 15:30:42 +02:00
parent 8e8ad034a7
commit d263ba73ce

View file

@ -79,5 +79,8 @@ def test_release_type_repository_env():
assert release_type == None assert release_type == None
sut = ReleaseTypeRepository.from_environment(MockEnvironmentApi({'REL_TYPE': 'Not the right variable'})) sut = ReleaseTypeRepository.from_environment(MockEnvironmentApi({'REL_TYPE': 'Not the right variable'}))
try:
release_type = sut.get_release_type() release_type = sut.get_release_type()
except:
assert release_type == None assert release_type == None