fix: tests, jobs.error return

This commit is contained in:
dettlaff 2023-10-12 02:40:47 +04:00
parent 70a498d0e5
commit 98eef8d08e
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ def parse_line(line):
if match is None:
return (
JobStatus.FINISHED,
JobStatus.ERROR,
100,
COMPLETED_WITH_ERROR,
RESULT_WAS_NOT_FOUND_ERROR,
@ -98,7 +98,7 @@ def get_dead_packages(output):
@huey.task()
def calculate_and_clear_dead_packages(job: Jobs):
def calculate_and_clear_dead_packages(job: Job):
Jobs.update(
job=Job,
status=JobStatus.RUNNING,

View file

@ -86,7 +86,7 @@ def test_parse_line(job_reset):
def test_parse_line_with_blank_line(job_reset):
txt = ""
output = (
JobStatus.FINISHED,
JobStatus.ERROR,
100,
COMPLETED_WITH_ERROR,
RESULT_WAS_NOT_FOUND_ERROR,