Skip to content

Commit

Permalink
check that the host is set from the client if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Apr 2, 2024
1 parent 2433265 commit 784d356
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,10 @@ def testSecure(self, gatewaywrapper):
assert not client.isSecure()
with BlitzGateway(client_obj=client, secure=True) as conn:
assert not conn.isSecure()

def testHost(self, gatewaywrapper):
gatewaywrapper.loginAsUser()
client = gatewaywrapper.gateway
pytest.raises(Exception,
BlitzGateway(client_obj=client,
host="myserver.com"))

0 comments on commit 784d356

Please sign in to comment.