Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Sep 20, 2023
1 parent 5dbd4e9 commit 7fcb8a7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# pylint: disable=unused-variable

import pytest
from faker import Faker
from models_library.projects import Project
from models_library.projects_nodes import InputsDict, InputTypes, SimCoreFileLink
from pydantic import create_model, parse_obj_as
Expand All @@ -18,7 +19,7 @@
)


def test_create_project_model_for_job():
def test_create_project_model_for_job(faker: Faker):
solver = Solver.parse_obj(
{
"id": "simcore/services/comp/itis/sleeper",
Expand All @@ -39,7 +40,7 @@ def test_create_project_model_for_job():
"id": "e2335f87-6cf9-3148-87d4-262901403621",
"filename": "file_with_number.txt",
"content_type": "text/plain",
"checksum": "9fdfbdb9686b3391bbea7c9e74aba49e-1",
"checksum": faker.sha256(),
},
}
}
Expand Down Expand Up @@ -107,7 +108,7 @@ def test_job_to_node_inputs_conversion():
assert got_node_inputs == node_inputs


def test_create_job_from_project():
def test_create_job_from_project(faker: Faker):
project = Project.parse_obj(
{
"uuid": "f925e30f-19de-42dc-acab-3ce93ea0a0a7",
Expand Down Expand Up @@ -186,7 +187,7 @@ def test_create_job_from_project():
"name": "simcore%2Fservices%2Fcomp%2Fitis%2Fsleeper/2.0.2/jobs/f925e30f-19de-42dc-acab-3ce93ea0a0a7",
"created_at": "2021-03-26T10:43:27.867Z",
"runner_name": "solvers/simcore%2Fservices%2Fcomp%2Fitis%2Fsleeper/releases/2.0.2",
"inputs_checksum": "24700556239a25d0da46ccb7d863c10ec8c074d46c8c521742d52ba68a2c69ae",
"inputs_checksum": "a887dfcac17f6e6045139ec00fbb3038a450111fdc8e10e94d66590f33b3f10e",
"url": None,
"runner_url": None,
"outputs_url": None,
Expand Down

0 comments on commit 7fcb8a7

Please sign in to comment.