From 06f8524d80f293370b18f8e98b677700bb5776a1 Mon Sep 17 00:00:00 2001 From: Spyros Date: Sun, 26 Jun 2022 17:27:32 +0100 Subject: [PATCH] fix tests --- application/tests/cre_main_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/tests/cre_main_test.py b/application/tests/cre_main_test.py index 51012f4db..ca66fdca9 100644 --- a/application/tests/cre_main_test.py +++ b/application/tests/cre_main_test.py @@ -716,6 +716,16 @@ def test_compare_datasets(self): context1.pop() + self.assertEqual( + main.compare_datasets(t1, tdiff), + [ + {"not_present": (c1.id, tdiff)}, + {}, + {"not_present": (f"{c1.id}-{infosum}", tdiff)}, + {}, + ], + ) + connection_2, app2, context2 = main.db_connect(path=t2) sqla.create_all(app=app2) connection_2.graph.graph = db.CRE_Graph.load_cre_graph(sqla.session)