old_contents: import pytest
  from dc_utils.tests.helpers import validate_html
  from django.urls import reverse
  
  
  class TestHtml:
      @pytest.fixture
      def urls(self):
          return [
              reverse("home"),
              reverse("about"),
              reverse("funding"),
              reverse("jobs"),
              reverse("team"),
              reverse("coc"),
              reverse("contact"),
              reverse("privacy"),
              reverse("dc_signup_form:mailing_list_signup_view"),
              reverse("projects:home"),
              reverse("projects:cvs"),
              reverse("projects:election_leaflets"),
              reverse("projects:whocanivotefor"),
              reverse("projects:candidates"),
              reverse("projects:data"),
              reverse("projects:election_ids"),
              reverse("projects:election_widget"),
              reverse("projects:past"),
              reverse("projects:polling_one_pager"),
              reverse("projects:polling_embed_code"),
              reverse("projects:polling_data_upload"),
              reverse("projects:reports"),
              reverse("projects:reports_registers"),
              reverse("report_2016:report_2016"),
              reverse("report_2017:report_2017"),
              reverse("report_2018:report_2018"),
              reverse("report_2019:report_2019"),
              reverse(
                  "report_2019_general_election:report_2019_general_election"
              ),
              reverse("report_2021:report_2021"),
              reverse("report_whos_missing:report_whos_missing"),
              reverse("wheredoivote_user_feedback:wheredoivote_user_feedback"),
              reverse(
                  "wheredoivote_user_feedback:wheredoivote_user_feedback_2017"
              ),
              reverse(
                  "wheredoivote_user_feedback:wheredoivote_user_feedback_2018"
              ),
          ]
  
      @pytest.mark.django_db
      def test_html_valid(self, client, subtests, urls):
          for url in urls:
              with subtests.test(msg=url):
                  assert client.get(url).status_code == 200
                  _, errors = validate_html(client, url)
                  assert errors == ""
  
new_contents: import pytest
  from dc_utils.tests.helpers import validate_html
  from django.urls import reverse
  
  
  class TestHtml:
      @pytest.fixture
      def urls(self):
          return [
              reverse("home"),
              reverse("about"),
              reverse("jobs"),
              reverse("team"),
              reverse("coc"),
              reverse("contact"),
              reverse("privacy"),
              reverse("dc_signup_form:mailing_list_signup_view"),
              reverse("projects:home"),
              reverse("projects:cvs"),
              reverse("projects:election_leaflets"),
              reverse("projects:candidates"),
              reverse("projects:data"),
              reverse("projects:election_widget"),
              reverse("projects:past"),
              reverse("projects:polling_one_pager"),
              reverse("projects:polling_embed_code"),
              reverse("projects:polling_data_upload"),
              reverse("projects:reports"),
              reverse("projects:reports_registers"),
              reverse("report_2016:report_2016"),
              reverse("report_2017:report_2017"),
              reverse("report_2018:report_2018"),
              reverse("report_2019:report_2019"),
              reverse(
                  "report_2019_general_election:report_2019_general_election"
              ),
              reverse("report_2021:report_2021"),
              reverse("report_whos_missing:report_whos_missing"),
              reverse("wheredoivote_user_feedback:wheredoivote_user_feedback"),
              reverse(
                  "wheredoivote_user_feedback:wheredoivote_user_feedback_2017"
              ),
              reverse(
                  "wheredoivote_user_feedback:wheredoivote_user_feedback_2018"
              ),
          ]
  
      @pytest.mark.django_db
      def test_html_valid(self, client, subtests, urls):
          for url in urls:
              with subtests.test(msg=url):
                  assert client.get(url).status_code == 200
                  _, errors = validate_html(client, url)
                  assert errors == ""
  
subject: Remove old pages from HTML validation