diff --git a/backend/audit/intakelib/__init__.py b/backend/audit/intakelib/__init__.py index 21de005fe5..722f9a1858 100644 --- a/backend/audit/intakelib/__init__.py +++ b/backend/audit/intakelib/__init__.py @@ -32,7 +32,7 @@ extract_corrective_action_plan, corrective_action_plan_named_ranges, corrective_action_field_mapping, - corrective_action_column_mapping + corrective_action_column_mapping, ) diff --git a/backend/audit/intakelib/checks/__init__.py b/backend/audit/intakelib/checks/__init__.py index 100591556c..7547ee95a0 100644 --- a/backend/audit/intakelib/checks/__init__.py +++ b/backend/audit/intakelib/checks/__init__.py @@ -1,11 +1,11 @@ from .runners import ( run_all_general_checks, - run_all_federal_awards_checks, + run_all_federal_awards_checks, run_all_notes_to_sefa_checks, run_all_audit_finding_checks, run_all_additional_eins_checks, run_all_additional_ueis_checks, run_all_audit_findings_text_checks, run_all_corrective_action_plan_checks, - run_all_secondary_auditors_checks + run_all_secondary_auditors_checks, ) diff --git a/backend/audit/intakelib/checks/check_findings_grid_validation.py b/backend/audit/intakelib/checks/check_findings_grid_validation.py index 96cc1b1f6a..9888f79512 100644 --- a/backend/audit/intakelib/checks/check_findings_grid_validation.py +++ b/backend/audit/intakelib/checks/check_findings_grid_validation.py @@ -7,6 +7,7 @@ # Significant Deficiency # Other Findings + def findings_grid_validation(ir): # Values copied directly out of the UG allowed_raw = [ diff --git a/backend/audit/intakelib/transforms/__init__.py b/backend/audit/intakelib/transforms/__init__.py index f7c6ce1cd2..5a5a2bd6cc 100644 --- a/backend/audit/intakelib/transforms/__init__.py +++ b/backend/audit/intakelib/transforms/__init__.py @@ -1,4 +1,3 @@ - from .runners import ( - run_all_notes_to_sefa_transforms, + run_all_notes_to_sefa_transforms, ) diff --git a/backend/audit/test_intakelib.py b/backend/audit/test_intakelib.py index 0269ff153c..a18302bb68 100644 --- a/backend/audit/test_intakelib.py +++ b/backend/audit/test_intakelib.py @@ -1,81 +1,76 @@ from django.test import SimpleTestCase from copy import deepcopy -from audit.intakelib.intermediate_representation import ( - ranges_to_rows, - remove_null_rows -) +from audit.intakelib.intermediate_representation import ranges_to_rows, remove_null_rows + class IRTests(SimpleTestCase): s1 = { "ranges": [ - { - "values": [1, 2, 3, None, None], - }, - { - "values": ["a", "b", "c", None, None], - }, - { - "values": [8, None, 10, None, None], - } + { + "values": [1, 2, 3, None, None], + }, + { + "values": ["a", "b", "c", None, None], + }, + { + "values": [8, None, 10, None, None], + }, ] } s2 = { "ranges": [ - { - "values": [1, None, None, None, None], - }, - { - "values": ["a", "b", "c", None, None], - }, - { - "values": [8, None, 10, None, None], - } - + { + "values": [1, None, None, None, None], + }, + { + "values": ["a", "b", "c", None, None], + }, + { + "values": [8, None, 10, None, None], + }, ] } r1 = { "ranges": [ - { - "values": [1, 2, 3], - }, - { - "values": ["a", "b", "c"], - }, - { - "values": [8, None, 10], - } + { + "values": [1, 2, 3], + }, + { + "values": ["a", "b", "c"], + }, + { + "values": [8, None, 10], + }, ] } r2 = { "ranges": [ - { - "values": [1, None, None], - }, - { - "values": ["a", "b", "c"], - }, - { - "values": [8, None, 10], - } - + { + "values": [1, None, None], + }, + { + "values": ["a", "b", "c"], + }, + { + "values": [8, None, 10], + }, ] } def test_ranges_to_rows(self): self.assertEqual( - [[1, 'a', 8], [2, 'b', None], [3, 'c', 10]], - ranges_to_rows(IRTests.s1["ranges"]) - ) + [[1, "a", 8], [2, "b", None], [3, "c", 10]], + ranges_to_rows(IRTests.s1["ranges"]), + ) self.assertEqual( - [[1, 'a', 8], [None, 'b', None], [None, 'c', 10]], - ranges_to_rows(IRTests.s2["ranges"]) - ) - + [[1, "a", 8], [None, "b", None], [None, "c", 10]], + ranges_to_rows(IRTests.s2["ranges"]), + ) def test_remove_null_rows(self): cp = deepcopy(IRTests.s1)