Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#230)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black: 24.1.1 →
24.2.0](psf/black@24.1.1...24.2.0)
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 →
v0.2.2](astral-sh/ruff-pre-commit@v0.2.1...v0.2.2)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 20, 2024
1 parent a0fb689 commit 9251eb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
)
- repo: https://github.com/psf/black
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black
files: >-
Expand All @@ -41,7 +41,7 @@ repos:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.2.2
hooks:
- id: ruff

Expand Down
12 changes: 7 additions & 5 deletions tests/_app_security_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ def sign_request(req_headers: dict, secret=None, user: str = ""):
headers = {}
result = httpx.put(request_url, headers=headers)
assert result.status_code == 401 # Missing headers
headers.update({
"AA-VERSION": environ.get("AA_VERSION", "1.0.0"),
"EX-APP-ID": environ.get("APP_ID", "nc_py_api"),
"EX-APP-VERSION": environ.get("APP_VERSION", "1.0.0"),
})
headers.update(
{
"AA-VERSION": environ.get("AA_VERSION", "1.0.0"),
"EX-APP-ID": environ.get("APP_ID", "nc_py_api"),
"EX-APP-VERSION": environ.get("APP_VERSION", "1.0.0"),
}
)
sign_request(headers)
result = httpx.put(request_url, headers=headers)
assert result.status_code == 200
Expand Down

0 comments on commit 9251eb3

Please sign in to comment.