From 1513a94a875d375422ef5415031eb9f7c3c9a2b6 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 4 Jan 2023 14:10:55 +0100 Subject: [PATCH] Comparing xml to csv parsing results now also checks that the columns are identical --- tests/test_sensospot_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_sensospot_data.py b/tests/test_sensospot_data.py index 61a83a3..c95177d 100644 --- a/tests/test_sensospot_data.py +++ b/tests/test_sensospot_data.py @@ -26,6 +26,7 @@ def test_compare_xml_to_csv(example_dir): assert isinstance(xml_df, pandas.DataFrame) assert len(csv_df) == len(xml_df) + assert set(csv_df.columns) == set(xml_df.columns) assert set(csv_df["Well.Name"]) == set(xml_df["Well.Name"]) assert set(csv_df["Exposure.Id"]) == set(xml_df["Exposure.Id"]) assert set(csv_df["Spot.Diameter"]) == set(xml_df["Spot.Diameter"])