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
sut = ReleaseTypeRepository.from_environment(MockEnvironmentApi({'REL_TYPE': 'Not the right variable'}))
release_type = sut.get_release_type()
assert release_type == None
try:
release_type = sut.get_release_type()
except:
assert release_type == None