Skip to content

Commit 959a916

Browse files
committed
try splatting
1 parent e935eff commit 959a916

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pvlib/tests/ivtools/test_sdm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ def test_fit_desoto_init_guess(mocker):
8585
init_guess = {k: v for k, v in zip(
8686
['IL_0', 'Io_0', 'Rs_0', 'Rsh_0', 'a_0'], init_guess_array)}
8787
mocker.spy(optimize, 'root')
88+
root_args = {} # to fill out call for test
8889
result, _ = sdm.fit_desoto(v_mp=31.0, i_mp=8.71, v_oc=38.3, i_sc=9.43,
8990
alpha_sc=0.005658, beta_voc=-0.13788,
9091
cells_in_series=60, init_guess=init_guess)
9192
optimize.root.assert_called_once_with(mocker.ANY, x0=init_guess_array,
92-
args=mocker.ANY, kwargs={})
93+
args=mocker.ANY, **root_args)
9394

9495

9596
def test_fit_desoto_failure():

0 commit comments

Comments
 (0)