File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/simcore_service_director_v2/models Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ class CompTaskAtDB(BaseModel):
150150 created : Annotated [dt .datetime , BeforeValidator (validate_legacy_datetime_str )]
151151 modified : Annotated [dt .datetime , BeforeValidator (validate_legacy_datetime_str )]
152152 # Additional information about price and hardware (ex. AWS EC2 instance type)
153- pricing_info : dict | None
153+ pricing_info : dict | None = None
154154 hardware_info : HardwareInfo
155155
156156 @field_validator ("state" , mode = "before" )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def fake_task_file(mocks_dir: Path):
2727
2828@pytest .fixture (scope = "session" )
2929def fake_task (fake_task_file : Path ) -> CompTaskAtDB :
30- return CompTaskAtDB .parse_file (fake_task_file )
30+ return CompTaskAtDB .model_validate_json (fake_task_file . read_text () )
3131
3232
3333# NOTE: these parametrizations are made to mimic something like a sleepers project
You can’t perform that action at this time.
0 commit comments