Skip to content

Commit f85372f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 84dbbaf commit f85372f

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

jupyter_scheduler/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
from jupyter_scheduler.backend_registry import BackendRegistry
1212
from jupyter_scheduler.environments import EnvironmentRetrievalError
13-
from jupyter_scheduler.job_id import decode_job_id, encode_job_id
1413
from jupyter_scheduler.exceptions import (
1514
IdempotencyTokenError,
1615
InputUriError,
1716
SchedulerError,
1817
)
18+
from jupyter_scheduler.job_id import decode_job_id, encode_job_id
1919
from jupyter_scheduler.models import (
2020
DEFAULT_MAX_ITEMS,
2121
DEFAULT_SORT,

jupyter_scheduler/tests/test_handlers.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ async def test_patch_jobs_for_stop_job(jp_fetch):
337337
raw_job_id = "542e0fac-1274-4a78-8340-a850bdb559c8"
338338
encoded_job_id = encode_job_id("local", raw_job_id)
339339
response = await jp_fetch(
340-
"scheduler", "jobs", encoded_job_id, method="PATCH", body=json.dumps({"status": "STOPPED"})
340+
"scheduler",
341+
"jobs",
342+
encoded_job_id,
343+
method="PATCH",
344+
body=json.dumps({"status": "STOPPED"}),
341345
)
342346

343347
mock_stop_job.assert_called_once_with(raw_job_id)
@@ -349,7 +353,11 @@ async def test_patch_jobs_for_name_update(jp_fetch):
349353
raw_job_id = "542e0fac-1274-4a78-8340-a850bdb559c8"
350354
encoded_job_id = encode_job_id("local", raw_job_id)
351355
response = await jp_fetch(
352-
"scheduler", "jobs", encoded_job_id, method="PATCH", body=json.dumps({"status": "STOPPED"})
356+
"scheduler",
357+
"jobs",
358+
encoded_job_id,
359+
method="PATCH",
360+
body=json.dumps({"status": "STOPPED"}),
353361
)
354362

355363
mock_stop_job.assert_called_once_with(raw_job_id)

jupyter_scheduler/tests/test_job_id.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
import pytest
44

5-
from jupyter_scheduler.job_id import (
6-
LEGACY_BACKEND_ID,
7-
decode_job_id,
8-
encode_job_id,
9-
)
5+
from jupyter_scheduler.job_id import LEGACY_BACKEND_ID, decode_job_id, encode_job_id
106

117

128
class TestEncodeJobId:

0 commit comments

Comments
 (0)