Skip to content

Commit

Permalink
Fix a few flaky tests relating to age groups
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Nov 21, 2024
1 parent 6c9c69d commit e2f9b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ def test_application_section__filter__by_age_group(graphql):
# given:
# - There is an application with two application sections with different age groups
# - A superuser is using the system
age_group_1 = AgeGroupFactory.create()
age_group_2 = AgeGroupFactory.create()
age_group_1 = AgeGroupFactory.create(minimum=18, maximum=100)
age_group_2 = AgeGroupFactory.create(minimum=0, maximum=17)
application = ApplicationFactory.create_in_status_draft(application_sections=[])
section_1 = ApplicationSectionFactory.create_in_status_unallocated(application=application, age_group=age_group_1)
ApplicationSectionFactory.create_in_status_unallocated(application=application, age_group=age_group_2)
Expand All @@ -742,8 +742,8 @@ def test_application_section__filter__by_age_group__multiple(graphql):
# given:
# - There is an application with two application sections with different age groups
# - A superuser is using the system
age_group_1 = AgeGroupFactory.create()
age_group_2 = AgeGroupFactory.create()
age_group_1 = AgeGroupFactory.create(minimum=18, maximum=100)
age_group_2 = AgeGroupFactory.create(minimum=0, maximum=17)
application = ApplicationFactory.create_in_status_draft(application_sections=[])
section_1 = ApplicationSectionFactory.create_in_status_unallocated(application=application, age_group=age_group_1)
section_2 = ApplicationSectionFactory.create_in_status_unallocated(application=application, age_group=age_group_2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@


def test_recurring_reservations__update_series(graphql):
age_group_1 = AgeGroupFactory.create()
age_group_2 = AgeGroupFactory.create()
age_group_1 = AgeGroupFactory.create(minimum=18, maximum=100)
age_group_2 = AgeGroupFactory.create(minimum=0, maximum=17)
purpose_1 = ReservationPurposeFactory.create()
purpose_2 = ReservationPurposeFactory.create()
city_1 = CityFactory.create()
Expand Down

0 comments on commit e2f9b57

Please sign in to comment.