-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix smaller changes requested in PR review.
Fix create_mockdata for PR. Save mail in start_payment and get ticket before looping in reserve_ticket. Split tests of negative tickets and zero tickets in reservation. Fix testing of test_reserve ticket conflicting with max_ticket_per_payment when testing reserving more tickets than there are seats left.
- Loading branch information
Showing
5 changed files
with
46 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,15 +23,12 @@ | |
chapter_event1 = ChapterEvent.objects.create(title="Fysikalen Dag 1", description="Första dagen av Fysikalen.", total_seats=10, sales_stop_at=NOW+datetime.timedelta(days=365), event_at=NOW+datetime.timedelta(days=365)) | ||
chapter_event1.ticket_types.add(standardbiljett, studentbiljett) | ||
|
||
chapter_event2 = ChapterEvent.objects.create(title="Fysikalen Dag 2", description="Andra dagen av Fysikalen.", max_tickets=10, sales_stop_at=NOW+datetime.timedelta(days=365), event_at=NOW+datetime.timedelta(days=366), swish_message="Hej på dig du. ") | ||
|
||
|
||
payment1 = Payment.objects.create( | ||
expires_at = NOW + datetime.timedelta(hours=1), | ||
swish_id = "Hej", | ||
status = PaymentStatus.RESERVED, | ||
email = "[email protected]", | ||
sent_email = True | ||
sent_email = False | ||
) | ||
|
||
ticket1 = Ticket.objects.create( | ||
|