-
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.
Jadudm fix workbook generator for new checks (#2563)
* Fixes logic in check_federal_program_total The check was being applied against the federal_program_total line. However, it was summing all expenditures and expecting to find the sum of everything in `amount_expended` to appear in `federal_program_total`. What the check wanted to do was to compare against `total_federal_expenditures.` I suspect this is because I did not ticket the issue clearly. This makes the check do the right thing. * Fixes my fix. I was confused. I forgot that an outcome from earlier was that we needed to fix the workbook generator. Therefore, I confused myself on the check_federal_program_total code. I reverted my adventure there (leaving it as-is from HSMD's work), and instead fixed the workbook generator to now create/insert the `cfda_key` column. I regenerated 100010 to verify that this now works. And, the end-to-end code now works as well (again), because it does the right thing. test_commands is a casualty. It is testing a fixture command that is aging, and I think that end-to-end and the workbook generator will replace it. * That was too easy. I spent too much time with date formats. * Linting. * Before main sync * Addes auditor cert, fixes E2E regression The text on the table changed, so the regression had to change. I've switched to a regex instead of the full contents of the table caption. This also makes the E2E workbook test code actually move audits into the "Accepted" table. This preps the E2E code for use in actuall regression testing. * Linting. * Apply suggestions from code review Accepting cleanup suggestions. Co-authored-by: Phil Dominguez <[email protected]> * Removing a test. --------- Co-authored-by: Phil Dominguez <[email protected]>
- Loading branch information
1 parent
31d5b0c
commit 48c12b6
Showing
15 changed files
with
47 additions
and
58 deletions.
There are no files selected for viewing
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%)
backend/audit/fixtures/workbooks/should_pass/100010-22/additional-eins-100010.xlsx
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/additional-ueis-100010.xlsx
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/audit-findings-100010.xlsx
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/audit-findings-text-100010.xlsx
Binary file not shown.
Binary file modified
BIN
+14 Bytes
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/corrective-action-plan-100010.xlsx
Binary file not shown.
Binary file modified
BIN
+158 KB
(120%)
backend/audit/fixtures/workbooks/should_pass/100010-22/federal-awards-100010.xlsx
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/notes-to-sefa-100010.xlsx
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
backend/audit/fixtures/workbooks/should_pass/100010-22/secondary-auditors-100010.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
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
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
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
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
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 |
---|---|---|
|
@@ -259,6 +259,25 @@ def _create_test_sac(user, auditee_name, dbkey): | |
email="[email protected]", # user.email, | ||
role="certifying_auditor_contact", | ||
) | ||
|
||
sac.auditee_certification = {} | ||
sac.auditee_certification["auditee_signature"] = {} | ||
sac.auditee_certification["auditee_signature"][ | ||
"auditee_name" | ||
] = "Bob the Auditee Name" | ||
sac.auditee_certification["auditee_signature"][ | ||
"auditee_title" | ||
] = "Bob the Auditee Signature" | ||
|
||
sac.auditor_certification = {} | ||
sac.auditor_certification["auditor_signature"] = {} | ||
sac.auditor_certification["auditor_signature"][ | ||
"auditor_name" | ||
] = "Alice the Auditor Name" | ||
sac.auditor_certification["auditor_signature"][ | ||
"auditor_title" | ||
] = "Alice the Auditor Signature" | ||
|
||
sac.data_source = "TSTDAT" | ||
sac.save() | ||
|
||
|