Skip to content
Snippets Groups Projects
Commit ff9bc023 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

TST: updated test to cover changed error

parent 27b48678
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51280 passed with warnings
......@@ -164,30 +164,30 @@ def test_sync_node():
# merge with conflicting information
# ----------------------------------
sn_a = SyncNode(db.Record(id=102))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(SyncNode(db.Record(id=101)))
sn_a = SyncNode(db.Record(name='102'))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(SyncNode(db.Record(name='101')))
sn_a = SyncNode(db.Record(name='102'))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(SyncNode(db.File(name='102')))
sn_a = SyncNode(db.Record(description='102'))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(SyncNode(db.Record(description='101')))
sn_a = SyncNode(db.File(path='102'))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(SyncNode(db.File(path='101')))
sn_a = SyncNode(db.File(path='102'))
sn_a.identifiable = Identifiable(name='a')
sn_b.identifiable = Identifiable(name='b')
sn_b = SyncNode(db.File(path='101'))
with pytest.raises(AssertionError):
with pytest.raises(ValueError):
sn_a.update(sn_b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment