Skip to content

Commit

Permalink
(PC-31411)[API] fix: collective pending booking: rm confirmation date
Browse files Browse the repository at this point in the history
A collective pending booking should not have a confirmation since it
should not have been confirmed.
  • Loading branch information
jbaudet-pass authored and tcoudray-pass committed Sep 18, 2024
1 parent 3367ce4 commit 18cf5ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/pcapi/core/educational/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ class CancelledCollectiveBookingFactory(CollectiveBookingFactory):
class PendingCollectiveBookingFactory(CollectiveBookingFactory):
cancellationLimitDate = factory.LazyFunction(lambda: datetime.datetime.utcnow() + datetime.timedelta(days=10))
confirmationLimitDate = factory.LazyFunction(lambda: datetime.datetime.utcnow() + datetime.timedelta(days=10))
confirmationDate = None
status = models.CollectiveBookingStatus.PENDING


Expand Down

0 comments on commit 18cf5ca

Please sign in to comment.