From 243405114a9a52f7806104c85745146550d47d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Thu, 30 May 2024 10:40:04 +0200 Subject: [PATCH] fix --- unittests/test_sync_node.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unittests/test_sync_node.py b/unittests/test_sync_node.py index 16b5fd93..668a5347 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 -- GitLab