We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e1f0a commit af31bf4Copy full SHA for af31bf4
1 file changed
tests/common/test_exceptions.py
@@ -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