Skip to content

Commit

Permalink
handle exception thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Apr 3, 2024
1 parent 784d356 commit 7ab2139
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,6 @@ def testSecure(self, gatewaywrapper):
def testHost(self, gatewaywrapper):
gatewaywrapper.loginAsUser()
client = gatewaywrapper.gateway
pytest.raises(Exception,
BlitzGateway(client_obj=client,
host="myserver.com"))
with pytest.raises(Exception) as ex:
BlitzGateway(client_obj=client, host="myserver.com")
assert "do not match" in str(ex,value)

0 comments on commit 7ab2139

Please sign in to comment.