Fix CI: Test for Exception rather than None
This commit is contained in:
parent
8e8ad034a7
commit
d263ba73ce
1 changed files with 5 additions and 2 deletions
|
@ -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'}))
|
||||||
release_type = sut.get_release_type()
|
try:
|
||||||
assert release_type == None
|
release_type = sut.get_release_type()
|
||||||
|
except:
|
||||||
|
assert release_type == None
|
||||||
|
|
Loading…
Reference in a new issue