generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to confirmation_id (instead of number), updated pytests
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 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
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 |
---|---|---|
|
@@ -35,10 +35,18 @@ async def setup( | |
transaction_session.add(filing_period) | ||
|
||
filing1 = FilingDAO( | ||
lei="1234567890", state=FilingState.FILING_STARTED, institution_snapshot_id="Snapshot-1", filing_period=1 | ||
lei="1234567890", | ||
state=FilingState.FILING_STARTED, | ||
institution_snapshot_id="Snapshot-1", | ||
filing_period=1, | ||
contact_info="[email protected]", | ||
) | ||
filing2 = FilingDAO( | ||
lei="ABCDEFGHIJ", state=FilingState.FILING_STARTED, institution_snapshot_id="Snapshot-1", filing_period=1 | ||
lei="ABCDEFGHIJ", | ||
state=FilingState.FILING_STARTED, | ||
institution_snapshot_id="Snapshot-1", | ||
filing_period=1, | ||
contact_info="[email protected]", | ||
) | ||
transaction_session.add(filing1) | ||
transaction_session.add(filing2) | ||
|
@@ -91,6 +99,7 @@ async def test_add_and_modify_filing(self, transaction_session: AsyncSession): | |
state=FilingState.FILING_IN_PROGRESS, | ||
institution_snapshot_id="Snapshot-1", | ||
filing_period=1, | ||
contact_info="[email protected]", | ||
) | ||
res = await repo.upsert_filing(transaction_session, new_filing) | ||
assert res.id == 3 | ||
|
@@ -103,6 +112,7 @@ async def test_add_and_modify_filing(self, transaction_session: AsyncSession): | |
state=FilingState.FILING_COMPLETE, | ||
institution_snapshot_id="Snapshot-1", | ||
filing_period=1, | ||
contact_info="[email protected]", | ||
) | ||
res = await repo.upsert_filing(transaction_session, mod_filing) | ||
assert res.id == 3 | ||
|