File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -86,3 +86,28 @@ def test_no_overlapping_substances():
8686 assert len (intersection ) == 0 , (
8787 f"The lists in gibbs adapter should have no overlap, found { intersection } in both lists"
8888 )
89+
90+
91+ async def test_simple_run ():
92+ concentrations = {
93+ "H2O" : 30 ,
94+ "H2S" : 10 ,
95+ "SO2" : 10 ,
96+ "NO2" : 1.5 ,
97+ "O2" : 10 ,
98+ }
99+ parameters = {
100+ "temperature" : 273 ,
101+ "pressure" : 100 ,
102+ "equation_of_state" : _EquationOfState .SRK ,
103+ }
104+
105+ # Act
106+ adapter = GibbsMinimizationModelAdapter (
107+ concentrations = concentrations , parameters = parameters , jwt_token = None
108+ )
109+
110+ concs = await adapter .run ()
111+
112+ pytest .approx (concs ["NH4HSO4" ], 1.5 , abs = 0.01 )
113+ pytest .approx (concs ["S8" ], 0.4 , abs = 0.01 )
You can’t perform that action at this time.
0 commit comments