Skip to content

Commit 722fa81

Browse files
style: format test_routers.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4dde085 commit 722fa81

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/unit/api/test_routers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,10 +1615,7 @@ def test_code_not_found(self, client: TestClient) -> None:
16151615
def test_code_cache_hit(self, client: TestClient) -> None:
16161616
"""Code endpoint should return cached data when available."""
16171617
cached = {"spec_id": "scatter-basic", "library": "matplotlib", "code": "cached code"}
1618-
with (
1619-
patch(DB_CONFIG_PATCH, return_value=True),
1620-
patch("api.routers.specs.get_cache", return_value=cached),
1621-
):
1618+
with patch(DB_CONFIG_PATCH, return_value=True), patch("api.routers.specs.get_cache", return_value=cached):
16221619
response = client.get("/specs/scatter-basic/matplotlib/code")
16231620
assert response.status_code == 200
16241621
assert response.json()["code"] == "cached code"

0 commit comments

Comments
 (0)