Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Nov 18, 2024
1 parent c2d05bb commit caba861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions awxkit/test/test_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@


def test_explicit_hostname():
client = WSClient("token", "some-hostname", 556, False)
client = WSClient(hostname="some-hostname", port=556, secure=False)
assert client.port == 556
assert client.hostname == "some-hostname"
assert client._use_ssl == False
assert client.token == "token"


def test_websocket_suffix():
Expand All @@ -35,7 +34,7 @@ def test_urlparsing(url, result):
with patch("awxkit.ws.config") as mock_config:
mock_config.base_url = url

client = WSClient("token")
client = WSClient(hostname=None)
assert client.port == result.port
assert client.hostname == result.hostname
assert client._use_ssl == result.secure

0 comments on commit caba861

Please sign in to comment.