Skip to content

Commit d7f8b24

Browse files
committed
added initialization of minimum gas_state
1 parent 1d4772d commit d7f8b24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_dtors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
import PyPartMC as ppmc
1212

1313
from .test_aero_data import AERO_DATA_CTOR_ARG_MINIMAL
14-
14+
from .test_gas_data import GAS_DATA_CTOR_ARG_MINIMAL
1515

1616
@pytest.mark.parametrize(
1717
"sut",
1818
(
1919
pytest.param(ppmc.GasData(("SO2",)), id="GasData"),
2020
pytest.param(ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL), id="AeroData"),
21-
pytest.param(ppmc.GasState(), id="GasState"),
21+
pytest.param(ppmc.GasState(ppmc.GasData(GAS_DATA_CTOR_ARG_MINIMAL)), id="GasState"),
2222
pytest.param(
2323
ppmc.AeroParticle(ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL), [0]),
2424
id="AeroParticle",

tests/test_run_part.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_args():
2323
aero_data = ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL)
2424
aero_state = ppmc.AeroState(AERO_STATE_CTOR_ARG_MINIMAL, aero_data)
2525
gas_data = ppmc.GasData(GAS_DATA_CTOR_ARG_MINIMAL)
26-
gas_state = ppmc.GasState()
26+
gas_state = ppmc.GasState(gas_data)
2727
scenario = ppmc.Scenario(gas_data, aero_data, SCENARIO_CTOR_ARG_MINIMAL)
2828
run_part_opt = ppmc.RunPartOpt(RUN_PART_OPT_CTOR_ARG_MINIMAL)
2929
camp_core = ppmc.CampCore()

0 commit comments

Comments
 (0)