Skip to content

Commit c82b5c7

Browse files
committed
fix mock
1 parent 83280c8 commit c82b5c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/test/test_celltemp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_PVSystem_sapm_celltemp(mocker):
5252
racking_model = 'roof_mount_cell_glassback'
5353

5454
system = pvsystem.PVSystem(racking_model=racking_model)
55-
mocker.spy(pvsystem, 'sapm_celltemp')
55+
mocker.spy(celltemp, 'sapm')
5656
temps = 25
5757
irrads = 1000
5858
winds = 1
@@ -112,12 +112,12 @@ def test_PVSystem_pvsyst_celltemp(mocker):
112112
module_parameters['eta_m'] = eta_m
113113
system = pvsystem.PVSystem(racking_model=racking_model,
114114
module_parameters=module_parameters)
115-
mocker.spy(pvsystem, 'pvsyst_celltemp')
115+
mocker.spy(celltemp, 'pvsyst')
116116
irrad = 800
117117
temp = 45
118118
wind = 0.5
119119
out = system.pvsyst_celltemp(irrad, temp, wind_speed=wind)
120-
pvsystem.pvsyst_celltemp.assert_called_once_with(
120+
celltemp.pvsyst.assert_called_once_with(
121121
irrad, temp, wind, eta_m, alpha_absorption, racking_model)
122122
assert isinstance(out, float)
123123
assert out < 90 and out > 70

0 commit comments

Comments
 (0)