Skip to content

Commit 97535a0

Browse files
committed
Covers errors in testing temperature.ross
1 parent 058e1f0 commit 97535a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_temperature.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ def test_ross():
186186
assert_allclose(expected, result2)
187187

188188

189+
def test_ross_errors():
190+
with pytest.raises(ValueError, match='Either noct or k need is required'):
191+
temperature.ross(1000., 30.)
192+
with pytest.raises(ValueError, match='Provide only one of noct or k'):
193+
temperature.ross(1000., 30., noct=45., k=0.02)
194+
195+
189196
def test_faiman_series():
190197
times = pd.date_range(start="2015-01-01", end="2015-01-02", freq="12h")
191198
temps = pd.Series([0, 10, 5], index=times)

0 commit comments

Comments
 (0)