From 4c5d5669ea75bcb619259238bafeb62fafd6acd5 Mon Sep 17 00:00:00 2001 From: Gavin Macaulay Date: Tue, 26 Nov 2024 16:09:40 +1300 Subject: [PATCH] Add test for theoretical_Sa() --- tests/test_parameter_checking.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_parameter_checking.py b/tests/test_parameter_checking.py index f232163..3d5e197 100644 --- a/tests/test_parameter_checking.py +++ b/tests/test_parameter_checking.py @@ -1,7 +1,7 @@ """Functions to test that models check their input parameters.""" import pytest import echosms -from echosms import ReferenceModels, BenchmarkData +from echosms import ReferenceModels, BenchmarkData, theoretical_Sa @pytest.fixture @@ -30,6 +30,11 @@ def models(): # These are more playing around with tests than real or comprehensive... +def test_theoretical_sa(): + with pytest.raises(ValueError): + theoretical_Sa(-45.0, 20.1, 10) + theoretical_Sa(-45.0, -20.1, 0.0) + def test_test_instance(models): for m in models: