Skip to content

Commit 3744687

Browse files
committed
Last fix tests
1 parent 83f870b commit 3744687

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_components/test_heat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ def test_heat_bcs():
138138
)
139139

140140
with pytest.raises(pd.ValidationError):
141-
td.VerticalNaturalConvectionCoeffModel(medium=air, plate_length=-10)
141+
td.VerticalNaturalConvectionCoeffModel(medium=air.heat, plate_length=-10)
142142

143143
_, solid_medium = make_heat_mediums()
144144
with pytest.raises(pd.ValidationError):
145-
td.VerticalNaturalConvectionCoeffModel(medium=solid_medium, plate_length=1e5)
145+
td.VerticalNaturalConvectionCoeffModel(medium=solid_medium.heat_spec, plate_length=1e5)
146146

147147

148148
def make_heat_mnts():

tests/test_components/test_heat_charge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@ def test_vertical_natural_convection():
913913
)
914914

915915
coeff_model = td.VerticalNaturalConvectionCoeffModel(plate_length=1)
916-
full_coeff_model = td.VerticalNaturalConvectionCoeffModel(medium=air.heat, plate_length=1)
917916
sim = td.HeatChargeSimulation(
918917
size=(2, 2, 2),
919918
center=(0, 0, 0),
@@ -979,6 +978,7 @@ def test_vertical_natural_convection():
979978
# Test the case where the convection model has its own fluid medium explicitly defined.
980979
# The simulation should use the properties from the model's medium and ignore the
981980
# fluid present at the interface.
981+
full_coeff_model = td.VerticalNaturalConvectionCoeffModel(medium=air.heat, plate_length=1)
982982
sim.updated_copy(
983983
boundary_spec=[
984984
td.HeatBoundarySpec(

0 commit comments

Comments
 (0)