We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 669b453 commit 9cbca31Copy full SHA for 9cbca31
tests/test_util.py
@@ -1,3 +1,4 @@
1
+import pytest
2
from followthemoney import model
3
4
from openaleph_procrastinate import util
@@ -34,5 +35,7 @@ def test_util():
34
35
36
for i in ("", None):
37
e.id = i
- assert util.make_stub_entity(e) is None
38
- assert util.make_file_entity(e) is None
+ with pytest.raises(RuntimeError):
39
+ util.make_stub_entity(e)
40
41
+ util.make_file_entity(e)
0 commit comments