Skip to content

Commit

Permalink
[Unticketed] Fix test that was using incorrect name for agency field …
Browse files Browse the repository at this point in the history
…after rename (#2811)

## Summary
Fixes <Unticketed>

### Time to review: __2 mins__

## Changes proposed
Fixes unit tests that broke after a recent rename of agency fields

Changed the name in one PR, and adjusted tests in a separate, but forgot
to reconcile them before merging both to main.
  • Loading branch information
chouinar authored Nov 12, 2024
1 parent 37226b2 commit 782b329
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_mix_of_inserts_updates_deletes(self, db_session, transform_oracle_data_
)

existing_opportunity = f.OpportunityFactory(
no_current_summary=True, opportunity_assistance_listings=[], agency="UPDATEAGENCY"
no_current_summary=True, opportunity_assistance_listings=[], agency_code="UPDATEAGENCY"
)
opportunity = f.StagingTopportunityFactory(
opportunity_id=existing_opportunity.opportunity_id, cfdas=[]
Expand Down Expand Up @@ -466,7 +466,7 @@ def test_delete_opportunity_with_deleted_children(self, db_session, transform_or
# but we'll still have delete events for the others - this verfies how we handle that.

existing_opportunity = f.OpportunityFactory(
no_current_summary=True, opportunity_assistance_listings=[], agency="AGENCYXYZ"
no_current_summary=True, opportunity_assistance_listings=[], agency_code="AGENCYXYZ"
)
opportunity = f.StagingTopportunityFactory(
opportunity_id=existing_opportunity.opportunity_id, cfdas=[], is_deleted=True
Expand Down

0 comments on commit 782b329

Please sign in to comment.