From c2a2f6fa41c1f47bf8eb6bf702e14015ca47487f Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 11 Jun 2024 09:44:53 -0600 Subject: [PATCH] Linting + test --- src/registrar/tests/test_reports.py | 8 ++------ src/registrar/views/admin_views.py | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 4522fbae1..71f24cc62 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -669,11 +669,7 @@ class ExportDataTest(MockDb, MockEppLib): # Define columns, sort fields, and filter condition # We'll skip submission date because it's dynamic and therefore # impossible to set in expected_content - columns = [ - "Domain request", - "Domain type", - "Federal type" - ] + columns = ["Domain request", "Domain type", "Federal type"] sort_fields = [ "requested_domain__name", ] @@ -812,5 +808,5 @@ class HelperFunctions(MockDb): "submission_date__lte": self.end_date, } submitted_requests_sliced_at_end_date = get_sliced_requests(filter_condition) - expected_content = [2, 2, 0, 0, 0, 0, 0, 0, 0, 1] + expected_content = [2, 2, 0, 0, 0, 0, 1, 0, 0, 1] self.assertEqual(submitted_requests_sliced_at_end_date, expected_content) diff --git a/src/registrar/views/admin_views.py b/src/registrar/views/admin_views.py index 88a0d7de0..f1baa72bd 100644 --- a/src/registrar/views/admin_views.py +++ b/src/registrar/views/admin_views.py @@ -166,6 +166,7 @@ class ExportDataFederal(View): class ExportDomainRequestDataFull(View): """Generates a downloaded report containing all Domain Requests (except started)""" + def get(self, request, *args, **kwargs): """Returns a content disposition response for current-full-domain-request.csv""" response = HttpResponse(content_type="text/csv")