Skip to content

Commit 2412733

Browse files
committed
Corecting formatting errors from pre-commit
I didn't run it beforehand. Oops.
1 parent 581f1f3 commit 2412733

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

bluesky_httpserver/tests/test_authenticators.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
from respx import MockRouter
1212
from starlette.datastructures import URL, QueryParams
1313

14+
from ..authenticators import LDAPAuthenticator, OIDCAuthenticator, ProxiedOIDCAuthenticator, UserSessionState
15+
1416
LDAP_TEST_HOST = os.environ.get("QSERVER_TEST_LDAP_HOST", "localhost")
1517
LDAP_TEST_PORT = int(os.environ.get("QSERVER_TEST_LDAP_PORT", "1389"))
1618
LDAP_TEST_ALT_HOST = os.environ.get("QSERVER_TEST_LDAP_ALT_HOST")
1719
if not LDAP_TEST_ALT_HOST:
18-
LDAP_TEST_ALT_HOST = (
19-
"127.0.0.1" if LDAP_TEST_HOST == "localhost" else LDAP_TEST_HOST
20-
)
20+
LDAP_TEST_ALT_HOST = "127.0.0.1" if LDAP_TEST_HOST == "localhost" else LDAP_TEST_HOST
2121

2222

2323
# fmt: off
24-
from ..authenticators import LDAPAuthenticator, OIDCAuthenticator, ProxiedOIDCAuthenticator, UserSessionState
2524

2625

2726
@pytest.mark.parametrize("ldap_server_address, ldap_server_port", [

docs/source/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ If you are already in a browser context, open:
169169

170170
This redirects to the OIDC provider login page and then back to the server callback.
171171

172-
This can similarly be acheived using ``httpie`` by opening the URL in a browser after getting
172+
This can similarly be acheived using ``httpie`` by opening the URL in a browser after getting
173173
the authorization URI from the server::
174174

175175
http POST http://localhost:60610/api/auth/provider/entra/authorize
@@ -183,7 +183,7 @@ spawn a browser for the user to log in to the provider.
183183
CLI/device flow
184184
***************
185185

186-
For terminal clients (i.e. no browser possible), start with
186+
For terminal clients (i.e. no browser possible), start with
187187
``POST /api/auth/provider/<provider-name>/authorize``.
188188
The response includes:
189189

0 commit comments

Comments
 (0)