Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 12, 2022
1 parent 33323fb commit 88da1a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/integration/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ async def test_attach_forbidden(
async with client.ws_connect(url):
pass
except WSServerHandshakeError as e:
assert e.headers and e.headers.get("X-Error")
assert e.headers
assert e.headers.get("X-Error")
assert e.message == "Invalid response status"
assert e.status == HTTPUnauthorized.status_code

Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_jobs_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ async def test_save_commit_fails_with_exception(

async def test_get_available_jobs_count(self, jobs_service: JobsService) -> None:
result = await jobs_service.get_available_jobs_counts()
assert result and "cpu-small" in result
assert result
assert "cpu-small" in result

async def test_mark_logs_dropped(
self,
Expand Down

0 comments on commit 88da1a3

Please sign in to comment.