@@ -126,7 +126,7 @@ def test_dummy_model_only_valid_substances_are_present(
126126):
127127 monkeypatch .setattr (dummy_model , "valid_substances" , valid_substances )
128128 simulation = {
129- "phases " : _make_phases ( concentrations ) ,
129+ "concentrations " : concentrations ,
130130 "models" : [{"modelId" : dummy_model .model_id , "parameters" : {}}],
131131 }
132132 response = client .post (
@@ -301,7 +301,7 @@ async def run(self):
301301 response = client .post (
302302 "/simulations/" ,
303303 json = {
304- "phases " : _make_phases ({}) ,
304+ "concentrations " : {} ,
305305 "models" : [
306306 {"modelId" : dummy_model .model_id , "parameters" : input_parameters }
307307 ],
@@ -324,7 +324,7 @@ async def run(self):
324324 assert response .json () == {
325325 "status" : "done" ,
326326 "input" : {
327- "phases " : _make_phases ({}) ,
327+ "concentrations " : {} ,
328328 "conditions" : {"temperature" : 25.0 , "pressure" : 10.0 },
329329 "models" : [
330330 {
@@ -351,7 +351,7 @@ async def run(self):
351351def test_running_empty_list_of_models_is_an_error (client ):
352352 response = client .post (
353353 "/simulations" ,
354- json = {"phases " : _make_phases ( {"H2O" : 2.0 }) , "models" : []},
354+ json = {"concentrations " : {"H2O" : 2.0 }, "models" : []},
355355 )
356356 assert response .status_code == 422
357357
@@ -385,7 +385,7 @@ def test_running_empty_list_of_models_is_an_error(client):
385385)
386386def test_running_models (client , input_models , result_concentrations ):
387387 simulation_input = {
388- "phases " : _make_phases ( {"H2O" : 1 }) ,
388+ "concentrations " : {"H2O" : 1 },
389389 "models" : input_models ,
390390 }
391391
@@ -434,7 +434,7 @@ def test_running_models(client, input_models, result_concentrations):
434434)
435435def test_failing_model (client , input_models , result ):
436436 simulation_input = {
437- "phases " : _make_phases ( {"H2O" : 1 }) ,
437+ "concentrations " : {"H2O" : 1 },
438438 "models" : input_models ,
439439 }
440440
@@ -512,7 +512,7 @@ def test_results_order(client, sql_session, swap):
512512 assert response .json () == {
513513 "status" : "done" ,
514514 "input" : {
515- "phases " : _make_phases ({}) ,
515+ "concentrations " : {} ,
516516 "conditions" : {"temperature" : 25.0 , "pressure" : 10.0 },
517517 "models" : [first_model , second_model ],
518518 },
0 commit comments