Skip to content

Commit aaa52e3

Browse files
committed
Adds missing input to functions within tests.
1 parent 22f94a7 commit aaa52e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_pvsystem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,15 @@ def test_PVSystem_faiman_rad_celltemp(mocker):
510510
winds = 1
511511
out = system.get_cell_temperature(irrads, temps, winds, model='faiman_rad')
512512
temperature.faiman_rad.assert_called_once_with(irrads, temps, winds,
513-
u0, u1,
513+
ir_down, u0, u1,
514514
sky_view, emissivity)
515515
assert_allclose(out, 56.4, atol=1e-1)
516516

517517

518518
def test_PVSystem_ross_celltemp(mocker):
519519
# example value
520520
k = 0.0208 # free-standing system
521+
noct = None # function expects only one of two, the other as None
521522

522523
temp_model_params = {'k': k}
523524
system = pvsystem.PVSystem(temperature_model_parameters=temp_model_params)
@@ -526,7 +527,7 @@ def test_PVSystem_ross_celltemp(mocker):
526527
irrads = 1000
527528
winds = None
528529
out = system.get_cell_temperature(irrads, temps, winds, model='ross')
529-
temperature.ross.assert_called_once_with(irrads, temps, k)
530+
temperature.ross.assert_called_once_with(irrads, temps, noct, k)
530531
assert_allclose(out, 45.8, atol=1e-1)
531532

532533

0 commit comments

Comments
 (0)