diff --git a/unittests/test_sync_node.py b/unittests/test_sync_node.py index 16b5fd93b8ed790e0be22b1acf4f965c10fc69c1..668a53470d028dfcfce7bb5785d68b685b034595 100644 --- a/unittests/test_sync_node.py +++ b/unittests/test_sync_node.py @@ -168,27 +168,27 @@ def test_sync_node(): # ---------------------------------- # ID mismatch sn_a = SyncNode(db.Record(id=102)) - with pytest.raises(ValueError, match="Trying to update"): + with pytest.raises(ImpossibleMergeError, match="Trying to update"): sn_a.update(SyncNode(db.Record(id=101))) # name mismatch sn_a = SyncNode(db.Record(name='102')) - with pytest.raises(ValueError, match="Trying to update"): + with pytest.raises(ImpossibleMergeError, match="Trying to update"): sn_a.update(SyncNode(db.Record(name='101'))) # type mismatch sn_a = SyncNode(db.Record(name='102')) - with pytest.raises(ValueError, match="Trying to update"): + with pytest.raises(ImpossibleMergeError, match="Trying to update"): sn_a.update(SyncNode(db.File(name='102'))) # description mismatch sn_a = SyncNode(db.Record(description='102')) - with pytest.raises(ValueError, match="Trying to update"): + with pytest.raises(ImpossibleMergeError, match="Trying to update"): sn_a.update(SyncNode(db.Record(description='101'))) # path mismatch sn_a = SyncNode(db.File(path='102')) - with pytest.raises(ValueError, match="Trying to update"): + with pytest.raises(ImpossibleMergeError, match="Trying to update"): sn_a.update(SyncNode(db.File(path='101'))) # identifiable mismatch