Skip to content

Commit

Permalink
Add test for theoretical_Sa()
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmacaulay committed Nov 26, 2024
1 parent b37c288 commit 4c5d566
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_parameter_checking.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4c5d566

Please sign in to comment.