Skip to content

Commit 9251eb3

Browse files
[pre-commit.ci] pre-commit autoupdate (#230)
<!--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>
1 parent a0fb689 commit 9251eb3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
)
2525
2626
- repo: https://github.com/psf/black
27-
rev: 24.1.1
27+
rev: 24.2.0
2828
hooks:
2929
- id: black
3030
files: >-
@@ -41,7 +41,7 @@ repos:
4141
- id: pyproject-fmt
4242

4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.2.1
44+
rev: v0.2.2
4545
hooks:
4646
- id: ruff
4747

tests/_app_security_checks.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ def sign_request(req_headers: dict, secret=None, user: str = ""):
1616
headers = {}
1717
result = httpx.put(request_url, headers=headers)
1818
assert result.status_code == 401 # Missing headers
19-
headers.update({
20-
"AA-VERSION": environ.get("AA_VERSION", "1.0.0"),
21-
"EX-APP-ID": environ.get("APP_ID", "nc_py_api"),
22-
"EX-APP-VERSION": environ.get("APP_VERSION", "1.0.0"),
23-
})
19+
headers.update(
20+
{
21+
"AA-VERSION": environ.get("AA_VERSION", "1.0.0"),
22+
"EX-APP-ID": environ.get("APP_ID", "nc_py_api"),
23+
"EX-APP-VERSION": environ.get("APP_VERSION", "1.0.0"),
24+
}
25+
)
2426
sign_request(headers)
2527
result = httpx.put(request_url, headers=headers)
2628
assert result.status_code == 200

0 commit comments

Comments
 (0)