Skip to content

Commit 4fc2f27

Browse files
committed
chore: fixed linting issues
1 parent c736d30 commit 4fc2f27

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

app/routers/jobs_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def get_jobs_status(
3434
"""
3535
Return combined list of upscaling tasks and processing jobs for the authenticated user.
3636
"""
37-
logger.debug(f"Fetching jobs list")
37+
logger.debug("Fetching jobs list")
3838
upscaling_tasks = (
3939
await get_upscaling_tasks_by_user_id(token, db)
4040
if JobsFilter.upscaling in filter

tests/platforms/test_openeo_platform.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import datetime
32
from types import SimpleNamespace
43
from unittest.mock import AsyncMock, MagicMock, patch

tests/routers/test_unit_jobs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_unit_jobs_create_500(
3232
assert r.status_code == 500
3333
assert "could not launch the job" in r.json().get("detail", "").lower()
3434

35+
3536
@patch("app.routers.unit_jobs.create_processing_job")
3637
def test_unit_jobs_create_http_error(
3738
mock_create_processing_job,
@@ -47,6 +48,7 @@ def test_unit_jobs_create_http_error(
4748
assert r.status_code == 503
4849
assert "service unavailable" in r.json().get("detail", "").lower()
4950

51+
5052
@patch("app.routers.unit_jobs.get_processing_job_by_user_id")
5153
def test_unit_jobs_get_job_200(
5254
mock_get_processing_job,

tests/routers/test_upscale_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_upscaling_task_create_500(
3838
assert r.status_code == 500
3939
assert "could not launch the upscale task" in r.json().get("detail", "").lower()
4040

41+
4142
@patch("app.routers.upscale_tasks.create_upscaling_task")
4243
def test_upscaling_task_create_http_error(
4344
mock_create_upscaling_task,
@@ -49,7 +50,6 @@ def test_upscaling_task_create_http_error(
4950
status_code=503, detail="Oops, service unavailable"
5051
)
5152

52-
5353
r = client.post("/upscale_tasks", json=fake_upscaling_task_request.model_dump())
5454
assert r.status_code == 503
5555
assert "service unavailable" in r.json().get("detail", "").lower()

0 commit comments

Comments
 (0)