diff --git a/peachjam/tests/test_views.py b/peachjam/tests/test_views.py index dbc68b5d1..c0e6471dd 100644 --- a/peachjam/tests/test_views.py +++ b/peachjam/tests/test_views.py @@ -101,7 +101,7 @@ def test_legislation_listing(self): documents, ) self.assertEqual( - ["1969", "2005", "2010", "2020"], + [("1969", 1969), ("2005", 2005), ("2010", 2010), ("2020", 2020)], sorted(response.context["facet_data"]["years"]["options"]), ) @@ -127,7 +127,10 @@ def test_legal_instrument_listing(self): "African Charter on Democracy, Elections and Governance", documents, ) - self.assertEqual(response.context["facet_data"]["years"]["options"], ["2007"]) + self.assertEqual( + [("2007", 2007)], + response.context["facet_data"]["years"]["options"], + ) def test_legal_instrument_detail(self): response = self.client.get( @@ -151,7 +154,10 @@ def test_generic_document_listing(self): "Activity Report of the Pan-African Parliament, July 2016 to June 2017", documents, ) - self.assertEqual(response.context["facet_data"]["years"]["options"], ["2017"]) + self.assertEqual( + [("2017", 2017)], + response.context["facet_data"]["years"]["options"], + ) def test_generic_document_detail(self): response = self.client.get(