Skip to content

Commit 12e27ff

Browse files
cwhanseechedey-ls
andauthored
Update tests/test_pvsystem.py
Co-authored-by: Echedey Luis <80125792+echedey-ls@users.noreply.github.com>
1 parent 82fa503 commit 12e27ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_pvsystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ def test_PVSystem_ross_celltemp(mocker):
524524

525525
temp_model_params = {'k': k}
526526
system = pvsystem.PVSystem(temperature_model_parameters=temp_model_params)
527-
mocker.spy(temperature, 'ross')
527+
m = mocker.spy(temperature, 'ross')
528528
temps = 25
529529
irrads = 1000
530530
winds = None
531531
out = system.get_cell_temperature(irrads, temps, winds, model='ross')
532-
temperature.ross.assert_called_once_with(irrads, temps, k=k)
532+
m.assert_called_once_with(irrads, temps, k=k)
533533
assert_allclose(out, 45.8, atol=1e-1)
534534

535535

0 commit comments

Comments
 (0)