From a608fb9709e92c518812e78c16bdfe77d92c13a6 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Thu, 10 Aug 2023 17:57:46 +0100 Subject: [PATCH] Add explicit test for multi index parsing --- tests/test_voting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_voting.py b/tests/test_voting.py index a14f32b..5dbc642 100644 --- a/tests/test_voting.py +++ b/tests/test_voting.py @@ -16,6 +16,8 @@ def test_parse_csv(simple_file): assert pd.api.types.is_string_dtype(simple_file.index) assert simple_file.index.is_unique assert all(pd.api.types.is_string_dtype(c) for _, c in simple_file.items()) + assert "Resolutions" in simple_file.columns + assert "Resolution 1" in simple_file["Resolutions"] def test_stv(simple_file):