-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2883 update logic in notes to sefa workbook generator to use census m…
…odels (#2899) * #2883 Updated logic to use Census models * #2883 Updated workbooks * Update backend/census_historical_migration/workbooklib/notes_to_sefa.py Co-authored-by: Phil Dominguez <[email protected]> * Update backend/census_historical_migration/test_core_xforms.py Co-authored-by: Phil Dominguez <[email protected]> --------- Co-authored-by: Phil Dominguez <[email protected]>
- Loading branch information
1 parent
786fee7
commit f698ca8
Showing
45 changed files
with
160 additions
and
65 deletions.
There are no files selected for viewing
Binary file modified
BIN
-1 Byte
(100%)
...l_migration/fixtures/workbooks/should_pass/177310-22/additional-eins-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
...l_migration/fixtures/workbooks/should_pass/177310-22/additional-ueis-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...gration/fixtures/workbooks/should_pass/177310-22/audit-findings-text-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...tion/fixtures/workbooks/should_pass/177310-22/corrective-action-plan-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...xtures/workbooks/should_pass/177310-22/federal-awards-audit-findings-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...al_migration/fixtures/workbooks/should_pass/177310-22/federal-awards-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...cal_migration/fixtures/workbooks/should_pass/177310-22/notes-to-sefa-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...igration/fixtures/workbooks/should_pass/177310-22/secondary-auditors-workbook-177310.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...l_migration/fixtures/workbooks/should_pass/180818-22/additional-eins-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...l_migration/fixtures/workbooks/should_pass/180818-22/additional-ueis-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...gration/fixtures/workbooks/should_pass/180818-22/audit-findings-text-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...tion/fixtures/workbooks/should_pass/180818-22/corrective-action-plan-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...xtures/workbooks/should_pass/180818-22/federal-awards-audit-findings-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...al_migration/fixtures/workbooks/should_pass/180818-22/federal-awards-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
...cal_migration/fixtures/workbooks/should_pass/180818-22/notes-to-sefa-workbook-180818.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...igration/fixtures/workbooks/should_pass/180818-22/secondary-auditors-workbook-180818.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...l_migration/fixtures/workbooks/should_pass/217653-22/additional-eins-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...l_migration/fixtures/workbooks/should_pass/217653-22/additional-ueis-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...gration/fixtures/workbooks/should_pass/217653-22/audit-findings-text-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...tion/fixtures/workbooks/should_pass/217653-22/corrective-action-plan-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...xtures/workbooks/should_pass/217653-22/federal-awards-audit-findings-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
...al_migration/fixtures/workbooks/should_pass/217653-22/federal-awards-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
...cal_migration/fixtures/workbooks/should_pass/217653-22/notes-to-sefa-workbook-217653.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...igration/fixtures/workbooks/should_pass/217653-22/secondary-auditors-workbook-217653.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
...l_migration/fixtures/workbooks/should_pass/251020-22/additional-eins-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...l_migration/fixtures/workbooks/should_pass/251020-22/additional-ueis-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...gration/fixtures/workbooks/should_pass/251020-22/audit-findings-text-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tion/fixtures/workbooks/should_pass/251020-22/corrective-action-plan-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...xtures/workbooks/should_pass/251020-22/federal-awards-audit-findings-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...al_migration/fixtures/workbooks/should_pass/251020-22/federal-awards-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
+12 Bytes
(100%)
...cal_migration/fixtures/workbooks/should_pass/251020-22/notes-to-sefa-workbook-251020.xlsx
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...igration/fixtures/workbooks/should_pass/251020-22/secondary-auditors-workbook-251020.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1 Byte
(100%)
...cal_migration/fixtures/workbooks/should_pass/69688-22/additional-eins-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...cal_migration/fixtures/workbooks/should_pass/69688-22/additional-ueis-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...migration/fixtures/workbooks/should_pass/69688-22/audit-findings-text-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...ration/fixtures/workbooks/should_pass/69688-22/corrective-action-plan-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...fixtures/workbooks/should_pass/69688-22/federal-awards-audit-findings-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ical_migration/fixtures/workbooks/should_pass/69688-22/federal-awards-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rical_migration/fixtures/workbooks/should_pass/69688-22/notes-to-sefa-workbook-69688.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
..._migration/fixtures/workbooks/should_pass/69688-22/secondary-auditors-workbook-69688.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from django.test import SimpleTestCase | ||
from .exception_utils import DataMigrationError | ||
|
||
from .workbooklib.notes_to_sefa import xform_is_minimis_rate_used | ||
|
||
|
||
class TestXformIsMinimisRateUsed(SimpleTestCase): | ||
def test_rate_used(self): | ||
"""Test that the function returns 'Y' when the rate is used.""" | ||
self.assertEqual( | ||
# Ensure extra whitespace is acceptable | ||
xform_is_minimis_rate_used("The auditee used the de minimis cost rate."), | ||
"Y", | ||
) | ||
|
||
self.assertEqual( | ||
xform_is_minimis_rate_used( | ||
"The School has elected to use the 10-percent de minimis indirect cost rate as allowed under the Uniform Guidance." | ||
), | ||
"Y", | ||
) | ||
|
||
def test_rate_not_used(self): | ||
"""Test that the function returns 'N' when the rate is not used.""" | ||
self.assertEqual( | ||
xform_is_minimis_rate_used( | ||
"The auditee did not use the de minimis cost rate." | ||
), | ||
"N", | ||
) | ||
self.assertEqual( | ||
xform_is_minimis_rate_used( | ||
"The Board has elected not to use the 10 percent de minimus indirect cost as allowed under the Uniform Guidance." | ||
), | ||
"N", | ||
) | ||
|
||
def test_ambiguous_or_unclear_raises_exception(self): | ||
"""Test that the function raises an exception when rate usage is ambiguous or unclear.""" | ||
with self.assertRaises(DataMigrationError): | ||
xform_is_minimis_rate_used( | ||
"The information regarding the de minimis rate is not clear." | ||
) | ||
|
||
with self.assertRaises(DataMigrationError): | ||
xform_is_minimis_rate_used( | ||
"It is unknown whether the de minimis rate was applied." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters