-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-34274)[API] feat: add age 17 to 18 eligibility
- Loading branch information
1 parent
d640d1c
commit 04f9379
Showing
27 changed files
with
454 additions
and
147 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
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
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 |
---|---|---|
|
@@ -1371,7 +1371,6 @@ def _validate_csv_row( | |
|
||
@pytest.mark.features(WIP_ENABLE_OFFER_ADDRESS=True, WIP_USE_OFFERER_ADDRESS_AS_DATA_SOURCE=True) | ||
def should_return_validated_bookings_for_offer(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -1402,7 +1401,7 @@ def should_return_validated_bookings_for_offer(self): | |
bookings_factories.BookingFactory(stock=stock_2) | ||
|
||
queries = 0 | ||
queries += 1 # Get feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # Get bookings | ||
|
||
offer_id = offer.id | ||
|
@@ -1459,7 +1458,7 @@ def should_return_validated_bookings_for_offer_with_old_cancelled_booking(self): | |
bookings_factories.BookingFactory(stock=stock_2) | ||
|
||
queries = 0 | ||
queries += 1 # Get feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # Get bookings | ||
|
||
offer_id = offer.id | ||
|
@@ -1684,7 +1683,6 @@ def _validate_csv_row( | |
assert data_dict["Duo"] == duo | ||
|
||
def should_return_validated_bookings_for_offer(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -1715,7 +1713,7 @@ def should_return_validated_bookings_for_offer(self): | |
bookings_factories.BookingFactory(stock=stock_2) | ||
|
||
queries = 0 | ||
queries += 1 # Get feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # Get bookings | ||
|
||
offer_id = offer.id | ||
|
@@ -1737,7 +1735,6 @@ def should_return_validated_bookings_for_offer(self): | |
) | ||
|
||
def should_return_validated_bookings_for_offer_with_offerer_address_as_data_source(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -1768,7 +1765,7 @@ def should_return_validated_bookings_for_offer_with_offerer_address_as_data_sour | |
bookings_factories.BookingFactory(stock=stock_2) | ||
|
||
queries = 0 | ||
queries += 1 # Get feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # Get bookings | ||
|
||
offer_id = offer.id | ||
|
@@ -1790,7 +1787,6 @@ def should_return_validated_bookings_for_offer_with_offerer_address_as_data_sour | |
) | ||
|
||
def should_return_validated_bookings_for_offer_with_old_cancelled_booking(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -1824,7 +1820,7 @@ def should_return_validated_bookings_for_offer_with_old_cancelled_booking(self): | |
bookings_factories.BookingFactory(stock=stock_2) | ||
|
||
queries = 0 | ||
queries += 1 # Get feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # Get bookings | ||
|
||
offer_id = offer.id | ||
|
@@ -2073,7 +2069,6 @@ def _validate_excel_row( | |
assert sheet.cell(row=row, column=18).value == duo | ||
|
||
def should_return_validated_bookings_for_offer_with_offerer_address_as_data_source(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -2105,7 +2100,7 @@ def should_return_validated_bookings_for_offer_with_offerer_address_as_data_sour | |
|
||
queries = 0 | ||
queries += 1 # select offer | ||
queries += 1 # select feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # select booking | ||
|
||
with assert_num_queries(queries): | ||
|
@@ -2423,7 +2418,6 @@ def _validate_excel_row( | |
assert sheet.cell(row=row, column=18).value == duo | ||
|
||
def should_return_validated_bookings_for_offer(self): | ||
|
||
beneficiary = users_factories.BeneficiaryGrant18Factory( | ||
email="[email protected]", firstName="Ron", lastName="Weasley", postalCode="97300" | ||
) | ||
|
@@ -2455,7 +2449,7 @@ def should_return_validated_bookings_for_offer(self): | |
|
||
queries = 0 | ||
queries += 1 # select offer | ||
queries += 1 # select feature | ||
# queries += 1 # feature flags are already cached by BeneficiaryGrant18Factory.beneficiaryImports | ||
queries += 1 # select booking | ||
|
||
with assert_num_queries(queries): | ||
|
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
Oops, something went wrong.