@@ -138,7 +138,7 @@ def test_dummy_model_only_valid_substances_are_present(
138138):
139139 monkeypatch .setattr (dummy_model , "valid_substances" , valid_substances )
140140 simulation = {
141- "phases " : _make_phases ( concentrations ) ,
141+ "concentrations " : concentrations ,
142142 "models" : [{"modelId" : dummy_model .model_id , "parameters" : {}}],
143143 }
144144 response = client .post (
@@ -317,7 +317,7 @@ async def run(self):
317317 response = client .post (
318318 "/simulations/" ,
319319 json = {
320- "phases " : _make_phases ({}) ,
320+ "concentrations " : {} ,
321321 "models" : [
322322 {"modelId" : dummy_model .model_id , "parameters" : input_parameters }
323323 ],
@@ -340,7 +340,7 @@ async def run(self):
340340 assert response .json () == {
341341 "status" : "done" ,
342342 "input" : {
343- "phases " : _make_phases ({}) ,
343+ "concentrations " : {} ,
344344 "conditions" : {"temperature" : 25.0 , "pressure" : 10.0 },
345345 "models" : [
346346 {
@@ -367,7 +367,7 @@ async def run(self):
367367def test_running_empty_list_of_models_is_an_error (client ):
368368 response = client .post (
369369 "/simulations" ,
370- json = {"phases " : _make_phases ( {"H2O" : 2.0 }) , "models" : []},
370+ json = {"concentrations " : {"H2O" : 2.0 }, "models" : []},
371371 )
372372 assert response .status_code == 422
373373
@@ -401,7 +401,7 @@ def test_running_empty_list_of_models_is_an_error(client):
401401)
402402def test_running_models (client , input_models , result_concentrations ):
403403 simulation_input = {
404- "phases " : _make_phases ( {"H2O" : 1 }) ,
404+ "concentrations " : {"H2O" : 1 },
405405 "models" : input_models ,
406406 }
407407
@@ -452,7 +452,7 @@ def test_running_models(client, input_models, result_concentrations):
452452)
453453def test_failing_model (client , input_models , result ):
454454 simulation_input = {
455- "phases " : _make_phases ( {"H2O" : 1 }) ,
455+ "concentrations " : {"H2O" : 1 },
456456 "models" : input_models ,
457457 }
458458
@@ -530,7 +530,7 @@ def test_results_order(client, sql_session, swap):
530530 assert response .json () == {
531531 "status" : "done" ,
532532 "input" : {
533- "phases " : _make_phases ({}) ,
533+ "concentrations " : {} ,
534534 "conditions" : {"temperature" : 25.0 , "pressure" : 10.0 },
535535 "models" : [first_model , second_model ],
536536 },
0 commit comments