Skip to content

Commit 9bb9712

Browse files
committed
use pytest.approx
1 parent 0d5955f commit 9bb9712

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pvlib/tests/ivtools/test_sdm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def test_fit_desoto_init_guess(mocker):
9191
result, _ = sdm.fit_desoto(v_mp=31.0, i_mp=8.71, v_oc=38.3, i_sc=9.43,
9292
alpha_sc=0.005658, beta_voc=-0.13788,
9393
cells_in_series=60, init_guess=init_guess)
94-
optimize.root.assert_called_once_with(mocker.ANY, x0=init_guess_array,
95-
args=(specs,), **root_args)
94+
optimize.root.assert_called_once_with(mocker.ANY,
95+
x0=pytest.approx(init_guess_array),
96+
args=(pytest.approx(specs),),
97+
**root_args)
9698

9799

98100
def test_fit_desoto_failure():

0 commit comments

Comments
 (0)