fix: tests, jobs.error return
continuous-integration/drone/push Build is failing Details

pull/21/head
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,