style(formatting): fix formatting issues
This commit is contained in:
Родитель
a4ed7ebb08
Коммит
a43e7471a4
|
@ -4,9 +4,9 @@ from warnings import warn
|
|||
|
||||
from deprecated import deprecated
|
||||
from gql import Client
|
||||
from gql.transport.exceptions import TransportServerError
|
||||
from gql.transport.requests import RequestsHTTPTransport
|
||||
from gql.transport.websockets import WebsocketsTransport
|
||||
from gql.transport.exceptions import TransportServerError
|
||||
|
||||
from specklepy.api import resources
|
||||
from specklepy.api.credentials import Account, get_account_from_token
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import random
|
||||
import uuid
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
|
@ -10,8 +11,6 @@ from specklepy.logging import metrics
|
|||
from specklepy.objects.base import Base
|
||||
from specklepy.objects.fakemesh import FakeDirection, FakeMesh
|
||||
from specklepy.objects.geometry import Point
|
||||
from urllib.parse import urlparse, parse_qs
|
||||
|
||||
|
||||
metrics.disable()
|
||||
|
||||
|
@ -40,8 +39,8 @@ def seed_user(host):
|
|||
)
|
||||
if not r.ok:
|
||||
raise Exception(f"Cannot seed user: {r.reason}")
|
||||
redirect_url = urlparse(r.headers.get('location'))
|
||||
access_code = parse_qs(redirect_url.query)['access_code'][0] # type: ignore
|
||||
redirect_url = urlparse(r.headers.get("location"))
|
||||
access_code = parse_qs(redirect_url.query)["access_code"][0] # type: ignore
|
||||
|
||||
r_tokens = requests.post(
|
||||
url=f"http://{host}/auth/token",
|
||||
|
|
Загрузка…
Ссылка в новой задаче