mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 05:40:26 +02:00
Reformat using black
This commit is contained in:
+13
-3
@@ -2,7 +2,13 @@ from __future__ import annotations
|
||||
|
||||
import io
|
||||
import time
|
||||
from abogen.webui.service import Job, JobStatus, build_service, _JOB_LOGGER, build_audiobookshelf_metadata
|
||||
from abogen.webui.service import (
|
||||
Job,
|
||||
JobStatus,
|
||||
build_service,
|
||||
_JOB_LOGGER,
|
||||
build_audiobookshelf_metadata,
|
||||
)
|
||||
|
||||
|
||||
def test_service_processes_job(tmp_path):
|
||||
@@ -47,7 +53,11 @@ def test_service_processes_job(tmp_path):
|
||||
)
|
||||
|
||||
deadline = time.time() + 5
|
||||
while time.time() < deadline and job.status not in {JobStatus.COMPLETED, JobStatus.FAILED, JobStatus.CANCELLED}:
|
||||
while time.time() < deadline and job.status not in {
|
||||
JobStatus.COMPLETED,
|
||||
JobStatus.FAILED,
|
||||
JobStatus.CANCELLED,
|
||||
}:
|
||||
time.sleep(0.05)
|
||||
|
||||
service.shutdown()
|
||||
@@ -287,4 +297,4 @@ def test_audiobookshelf_metadata_allows_decimal_sequence(tmp_path):
|
||||
|
||||
metadata = build_audiobookshelf_metadata(job)
|
||||
|
||||
assert metadata["seriesSequence"] == "4.5"
|
||||
assert metadata["seriesSequence"] == "4.5"
|
||||
|
||||
Reference in New Issue
Block a user