diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 614b0a61..a910203c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black files: >- @@ -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 diff --git a/tests/_app_security_checks.py b/tests/_app_security_checks.py index ce497669..7cc7c1ba 100644 --- a/tests/_app_security_checks.py +++ b/tests/_app_security_checks.py @@ -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