Skip to content

Commit af31bf4

Browse files
committed
new tests
1 parent 34e1f0a commit af31bf4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/common/test_exceptions.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
3+
import valor_lite.exceptions as exc
4+
5+
6+
def test_empty_evaluator_exc():
7+
with pytest.raises(exc.EmptyEvaluatorError) as e:
8+
raise exc.EmptyEvaluatorError()
9+
assert "no data" in str(e)
10+
11+
12+
def test_cache_error_exc():
13+
with pytest.raises(exc.InternalCacheError) as e:
14+
raise exc.InternalCacheError("custom message")
15+
assert "custom message" in str(e)

0 commit comments

Comments
 (0)