Skip to content

Commit fddf716

Browse files
committed
fix test formatting
1 parent f39ac42 commit fddf716

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

tests/test_dtors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
from .test_aero_data import AERO_DATA_CTOR_ARG_MINIMAL
1414
from .test_gas_data import GAS_DATA_CTOR_ARG_MINIMAL
1515

16+
1617
@pytest.mark.parametrize(
1718
"sut",
1819
(
1920
pytest.param(ppmc.GasData(("SO2",)), id="GasData"),
2021
pytest.param(ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL), id="AeroData"),
21-
pytest.param(ppmc.GasState(ppmc.GasData(GAS_DATA_CTOR_ARG_MINIMAL)), id="GasState"),
22+
pytest.param(
23+
ppmc.GasState(ppmc.GasData(GAS_DATA_CTOR_ARG_MINIMAL)), id="GasState"
24+
),
2225
pytest.param(
2326
ppmc.AeroParticle(ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL), [0]),
2427
id="AeroParticle",

tests/test_gas_state.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
# import numpy as np
1313
import PyPartMC as ppmc
14+
1415
from .test_gas_data import GAS_DATA_CTOR_ARG_MINIMAL
1516

1617
GAS_DATA_MINIMAL = ppmc.GasData(GAS_DATA_CTOR_ARG_MINIMAL)
1718

19+
1820
class TestGasState:
1921
@staticmethod
2022
def test_ctor_error():
@@ -71,7 +73,14 @@ def test_get_item_valid():
7173
@staticmethod
7274
def test_get_items():
7375
# arrange
74-
gas_data = ppmc.GasData(("SO2","NO2","NO","CO",))
76+
gas_data = ppmc.GasData(
77+
(
78+
"SO2",
79+
"NO2",
80+
"NO",
81+
"CO",
82+
)
83+
)
7584
sut = ppmc.GasState(gas_data)
7685

7786
# act
@@ -102,6 +111,7 @@ def test_get_mix_rats():
102111

103112
assert len(sut.mix_rats) == len(sut)
104113

114+
105115
# @staticmethod
106116
# def test_to_json():
107117
# # arrange

0 commit comments

Comments
 (0)