Fix / improve styling in test class
This commit is contained in:
@@ -180,7 +180,9 @@ def test_api_auth():
|
|||||||
|
|
||||||
def test_api_ws_auth(botclient):
|
def test_api_ws_auth(botclient):
|
||||||
ftbot, client = botclient
|
ftbot, client = botclient
|
||||||
def url(token): return f"/api/v1/message/ws?token={token}"
|
|
||||||
|
def url(token):
|
||||||
|
return f"/api/v1/message/ws?token={token}"
|
||||||
|
|
||||||
bad_token = "bad-ws_token"
|
bad_token = "bad-ws_token"
|
||||||
with pytest.raises(WebSocketDisconnect):
|
with pytest.raises(WebSocketDisconnect):
|
||||||
|
|||||||
Reference in New Issue
Block a user