Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
cjh1 committed Jan 22, 2025
1 parent 6dfb81c commit 2817458
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/sfapi_client/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ async def _http_client(self):
else:
# We have a session
# Make sure it's still active
await self.__http_client.ensure_active_token(self.__http_client.token)
await self.__http_client.ensure_active_token(
self.__http_client.token
)
# Use regular client, but add the access token if we have one
elif self.__http_client is None:
# We already have an access token
Expand Down
4 changes: 3 additions & 1 deletion src/sfapi_client/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ def _http_client(self):
else:
# We have a session
# Make sure it's still active
self.__http_client.ensure_active_token(self.__http_client.token)
self.__http_client.ensure_active_token(
self.__http_client.token
)
# Use regular client, but add the access token if we have one
elif self.__http_client is None:
# We already have an access token
Expand Down
4 changes: 1 addition & 3 deletions tests/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@


@pytest.mark.api_dev
def test_group(
authenticated_client, test_group
):
def test_group(authenticated_client, test_group):
with authenticated_client as client:
group = client.group(test_group)
assert group is not None
Expand Down

0 comments on commit 2817458

Please sign in to comment.