Skip to content

Commit 9136699

Browse files
committed
fixup! ruff format tests/test_views.py #404
1 parent 6995960 commit 9136699

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11

22
[tool.black]
33
line-length = 120
4+
# TODO: drop this target-version when `project.requires-python` is set
5+
target-version = ["py38", "py39", "py310", "py311"]
46

57
[tool.isort]
68
profile = "black"
79

810
[tool.ruff]
911
line-length = 120
12+
# TODO: drop this target-version when `project.requires-python` is set
13+
target-version = "py38"

tests/test_views.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,10 +2185,9 @@ def test_get_job_results_public_href_asset_100(self, api, backend_implementation
21852185
"nodata": np.nan,
21862186
}
21872187
}
2188-
with (
2189-
self._fresh_job_registry(jobs={"07024ee9-7847-4b8a-b260-6c879a2b3cdc": {"status": "finished"}}),
2190-
mock.patch.object(backend_implementation.batch_jobs, "get_result_assets", return_value=results_data),
2191-
):
2188+
with self._fresh_job_registry(
2189+
jobs={"07024ee9-7847-4b8a-b260-6c879a2b3cdc": {"status": "finished"}}
2190+
), mock.patch.object(backend_implementation.batch_jobs, "get_result_assets", return_value=results_data):
21922191
resp = api.get("/jobs/07024ee9-7847-4b8a-b260-6c879a2b3cdc/results", headers=self.AUTH_HEADER)
21932192
res = resp.assert_status_code(200).json
21942193
assert res["assets"] == {

0 commit comments

Comments
 (0)