Skip to content

Commit 56c6fc7

Browse files
committed
more testing of GasState
1 parent d28e504 commit 56c6fc7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_gas_state.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ def test_get_item_valid():
7171
@staticmethod
7272
def test_get_items():
7373
# arrange
74-
sut = ppmc.GasState(GAS_DATA_MINIMAL)
74+
gas_data = ppmc.GasData(("SO2","NO2","NO","CO",))
75+
sut = ppmc.GasState(gas_data)
7576

7677
# act
7778
values = sut.mix_rats
7879

7980
# assert
80-
# assert isinstance(values, np.ndarray)
81+
assert isinstance(values, list)
8182
assert len(sut) == len(values)
8283

8384
@staticmethod
@@ -99,7 +100,7 @@ def test_get_mix_rats():
99100
gas_data = GAS_DATA_MINIMAL
100101
sut = ppmc.GasState(gas_data)
101102

102-
assert len(sut.mix_rats) == len(gas_data)
103+
assert len(sut.mix_rats) == len(sut)
103104

104105
# @staticmethod
105106
# def test_to_json():

0 commit comments

Comments
 (0)