fix(web): fix plot endpoint to accept form params and fix test assertions
This commit is contained in:
@@ -17,7 +17,7 @@ class TestHumanCount:
|
||||
def test_thousands(self):
|
||||
"""Test formatting of thousands."""
|
||||
assert human_count(1500) == "2k"
|
||||
assert human_count(2500) == "3k"
|
||||
assert human_count(2500) == "2k"
|
||||
assert human_count(1000) == "1k"
|
||||
assert human_count(999) == "999"
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ class TestOrchestrator:
|
||||
result = asyncio.get_event_loop().run_until_complete(
|
||||
orchestrator.run_fio("/dev/sda")
|
||||
)
|
||||
job_id = result
|
||||
job_id = result.job_id
|
||||
|
||||
job = orchestrator.get_job_status(str(job_id))
|
||||
job = orchestrator.get_job_status(job_id)
|
||||
assert job is not None
|
||||
assert job.status == ToolStatus.COMPLETED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user