diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 7f88ed0dc..074ba0a98 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -734,7 +734,7 @@ class ExportDataTest(MockDb, MockEppLib): csv_file.seek(0) # Read the content into a variable csv_content = csv_file.read() - + print(csv_content) expected_content = ( # Header "Domain request,Submitted at,Status,Domain type,Federal type," @@ -748,13 +748,13 @@ class ExportDataTest(MockDb, MockEppLib): "Chief Tester,Purpose of the site,There is more,Testy Tester testy2@town.com,,city.com,\n" "city3.gov,2024-04-02,Submitted,Federal,Executive,,Testorg,N/A,,NY,2,,,,0,1," "cheeseville.gov | city1.gov | igorville.gov,Testy,Tester,testy@town.com,Chief Tester," - "Purpose of the site,test@igorville.com | There is more," - "Meow Tester24 te2@town.com | Testy1232 Tester24 te2@town.com " - "| Testy Tester testy2@town.com,test@igorville.com,city.com |" - " https://www.example2.com | https://www.example.com,\n" - "city5.gov,,Approved,Federal,Executive,,Testorg,N/A,,NY,2,,,,1,0," - "city1.gov,Testy,Tester,testy@town.com,Chief Tester,Purpose of the site,There " - "is more,Testy Tester testy2@town.com,,city.com,\n" + "Purpose of the site,test@igorville.com | There is more,Meow Tester24 te2@town.com | " + "Testy1232 Tester24 te2@town.com | Testy Tester testy2@town.com,test@igorville.com," + "city.com | https://www.example2.com | https://www.example.com,\n" + "city4.gov,2024-04-02,Submitted,City,Executive,,Testorg,Yes,,NY,2,,,,0,1,city1.gov,Testy,Tester,testy@town.com," + "Chief Tester,Purpose of the site,There is more,Testy Tester testy2@town.com,,city.com,\n" + "city5.gov,,Approved,Federal,Executive,,Testorg,N/A,,NY,2,,,,1,0,city1.gov,Testy,Tester,testy@town.com," + "Chief Tester,Purpose of the site,There is more,Testy Tester testy2@town.com,,city.com,\n" "city6.gov,2024-04-02,Submitted,Federal,Executive,,Testorg,N/A,,NY,2,,,,0,1,city1.gov,Testy,Tester," "testy@town.com,Chief Tester,Purpose of the site,There is more,Testy Tester testy2@town.com,,city.com," ) diff --git a/src/registrar/utility/csv_export.py b/src/registrar/utility/csv_export.py index 91f93e011..b12471c17 100644 --- a/src/registrar/utility/csv_export.py +++ b/src/registrar/utility/csv_export.py @@ -894,9 +894,7 @@ class DomainRequestExport: # Handle the federal_type field. Defaults to the wrong format. federal_type = request.get("federal_type") - human_readable_federal_type = ( - BranchChoices.get_branch_label(federal_type) if federal_type else None - ) + human_readable_federal_type = BranchChoices.get_branch_label(federal_type) if federal_type else None # Handle the org_type field org_type = request.get("generic_org_type") or request.get("organization_type")