From 0a0cd04589f36c77857dc42d0948504815adeb5c Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Mon, 17 Aug 2026 16:28:13 +0200 Subject: [PATCH] Update test_limits.py --- tests/quality/test_limits.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/quality/test_limits.py b/tests/quality/test_limits.py index cf5a2f2..230c93c 100644 --- a/tests/quality/test_limits.py +++ b/tests/quality/test_limits.py @@ -48,6 +48,11 @@ def test_bsrn_limit_zenith_90_upper_is_c(): assert upper == 100.0 +def test_bsrn_limit_zenith_nighttime(): + _, upper = bsrn_limits(95.0, DNI_EXTRA, "ghi-ppl") + assert np.isna(upper) + + def test_bsrn_limit_custom_dict(): lower, upper = bsrn_limits(SZA, DNI_EXTRA, {"scale": 1.0, "exponent": 1.0, "offset": 99, "lower": -99})