Skip to content

Add unit tests for BUInternalInvoice#296

Open
marcoagonzales007 wants to merge 1 commit into
CCI-MOC:mainfrom
marcoagonzales007:add-bu-internal-invoice-tests
Open

Add unit tests for BUInternalInvoice#296
marcoagonzales007 wants to merge 1 commit into
CCI-MOC:mainfrom
marcoagonzales007:add-bu-internal-invoice-tests

Conversation

@marcoagonzales007

Copy link
Copy Markdown
Contributor

Part of #185

Adds unit tests for BUInternalInvoice bringing the coverage from 43% to 100%

Tests Added:

1.test_prepare_export - this verifies that only rows that are billable,have a PI, and belong to boston university are included in the export
2.test_sum_project_allocations - this verifies that multiple allocations under the same project name are collapsed into one row and summed correctly

Also adds new_bu_internal_invoice() in util.py in order to follow the pattern for the other unit tests

@marcoagonzales007 marcoagonzales007 requested review from QuanMPhm and removed request for QuanMPhm May 23, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant