Skip to content
Snippets Groups Projects
Commit 6c5efb5c authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

TST: Test for correct error type

parent 027b0ce7
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!164F fix misleading error
Pipeline #49161 passed
...@@ -783,8 +783,8 @@ def test_split_into_inserts_and_updates_backref(crawler_mocked_for_backref_test) ...@@ -783,8 +783,8 @@ def test_split_into_inserts_and_updates_backref(crawler_mocked_for_backref_test)
entlist = [referenced, db.Record(name="A").add_parent("BR").add_property("ref", referenced), ] entlist = [referenced, db.Record(name="A").add_parent("BR").add_property("ref", referenced), ]
# Test without referencing object # Test without referencing object
# currently a NotImplementedError is raised if necessary properties are missing. # currently a RuntimeError is raised if necessary properties are missing.
with raises(NotImplementedError): with raises(RuntimeError):
crawler.split_into_inserts_and_updates([db.Record(name="B").add_parent("C")]) crawler.split_into_inserts_and_updates([db.Record(name="B").add_parent("C")])
# identifiables were not yet checked # identifiables were not yet checked
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment