From 62cdd3018c788ceb029480a1842644a5213c93c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Mon, 11 Nov 2024 13:52:19 +0100
Subject: [PATCH] TST: adjust test to new argument names

---
 unittests/test_apiutils.py | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py
index 2c62d3e0..fdd5adda 100644
--- a/unittests/test_apiutils.py
+++ b/unittests/test_apiutils.py
@@ -965,22 +965,22 @@ def test_describe_diff():
     diff = compare_entities(recA, recB)
     diffout = describe_diff(*diff)
 
-    assert diffout.startswith("## Difference between the old version and the new version of None")
+    assert diffout.startswith("## Difference between the first version and the second version of None")
 
     # The output of the describe_diff function is currently not ordered (e.g. by name of the property)
     # so we cannot just compare a well-defined output string.
 
-    assert "it does not exist in the old version:" in diffout
-    assert "old version: {'value': 2}" in diffout
-    assert "new version: {'value': 12}" in diffout
+    assert "it does not exist in the first version:" in diffout
+    assert "first version: {'value': 2}" in diffout
+    assert "second version: {'value': 12}" in diffout
 
-    assert "old version: {'unit': 'K'}" in diffout
-    assert "new version: {'unit': '°C'}" in diffout
+    assert "first version: {'unit': 'K'}" in diffout
+    assert "second version: {'unit': '°C'}" in diffout
 
     diffout = describe_diff(*diff, name="Entity")
-    assert diffout.startswith("## Difference between the old version and the new version of Entity")
+    assert diffout.startswith("## Difference between the first version and the second version of Entity")
 
-    diffout = describe_diff(*diff, label_old="recA", label_new="recB")
+    diffout = describe_diff(*diff, label_e0="recA", label_e1="recB")
     assert "recA: {'value': 2}" in diffout
     assert "recB: {'value': 12}" in diffout
 
@@ -989,5 +989,5 @@ def test_describe_diff():
 
     assert "it does not exist in the recA:" in diffout
 
-    assert "old" not in diffout
-    assert "new" not in diffout
+    assert "first" not in diffout
+    assert "second" not in diffout
-- 
GitLab