Skip to content

Commit

Permalink
Fix factory inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
chouinar committed Mar 5, 2024
1 parent 86ee26d commit 4aa3731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tests/src/db/models/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class Meta:
"random_int", min=10_000, max=10_000_000, step=5_000
)
award_floor = factory.LazyAttribute(
lambda s: s.estimated_total_program_funding / s.expected_number_of_awards
lambda s: s.estimated_total_program_funding // s.expected_number_of_awards
)
award_ceiling = factory.LazyAttribute(lambda s: s.estimated_total_program_funding)

Expand Down Expand Up @@ -441,7 +441,7 @@ class ForeignTopportunityFactory(factory.DictFactory):
opportunity_id = factory.Sequence(lambda n: n)

oppnumber = factory.Sequence(lambda n: f"F-ABC-{n}-XYZ-001")
opptitle = factory.LazyFunction(lambda: f"Research into {fake.job()} industry")
opptitle = factory.LazyFunction(lambda: f"Research into {fake.job()} industry".replace("'", ""))

owningagency = factory.Iterator(["F-US-ABC", "F-US-XYZ", "F-US-123"])

Expand Down

0 comments on commit 4aa3731

Please sign in to comment.