-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from Edvinas9/feature/AVB-821-ticket-zone
AVB-821 Ticket.priceZone
- Loading branch information
Showing
6 changed files
with
20 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.4.11' | ||
__version__ = '1.4.12' |
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ def test_deserialize_ticket(): | |
'price': 199, | ||
'price_code': None, | ||
'price_type': None, | ||
'price_zone': None, | ||
'qr_code_url': '', | ||
'redeemer_email': None, | ||
'redeemer_id': None, | ||
|
@@ -116,6 +117,7 @@ def test_deserialize_ticket_shared(): | |
'price': 199, | ||
'price_code': None, | ||
'price_type': None, | ||
'price_zone': None, | ||
'qr_code_url': '', | ||
'redeemer_email': None, | ||
'redeemer_id': None, | ||
|
@@ -177,6 +179,7 @@ def test_deserialize_ticket_shared_redeemed(): | |
'price': 199, | ||
'price_code': None, | ||
'price_type': None, | ||
'price_zone': None, | ||
'qr_code_url': '', | ||
'redeemer_email': '[email protected]', | ||
'redeemer_id': 1234, | ||
|
@@ -238,6 +241,7 @@ def test_deserialize_ticket_with_event_and_venue(): | |
'price': None, | ||
'price_code': 'LÄKTARE 1 LÅNGSIDA,', | ||
'price_type': None, | ||
'price_zone': None, | ||
'qr_code_url': 'http://api-staging.livestyled.com/v3/web/tickets/qr-code/224199046363003230328509.png', | ||
'redeemer_email': None, | ||
'redeemer_id': None, | ||
|
@@ -321,6 +325,7 @@ def test_serialize_ticket(): | |
'seat': None, | ||
'price': 0, | ||
'priceType': None, | ||
'priceZone': None, | ||
'externalCustomerRef': None, | ||
'sessionDate': None, | ||
'redeemerEmail': None, | ||
|
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 |
---|---|---|
|
@@ -41,6 +41,7 @@ def test_get_ticket(requests_mock): | |
assert ticket.price == 199 | ||
assert ticket.price_code is None | ||
assert ticket.price_type is None | ||
assert ticket.price_zone is None | ||
assert ticket.redeemer_email is None | ||
assert ticket.redeemer_id is None | ||
assert ticket.redeemer is None | ||
|
@@ -89,6 +90,7 @@ def test_get_ticket_shared(requests_mock): | |
assert ticket.price == 199 | ||
assert ticket.price_code is None | ||
assert ticket.price_type is None | ||
assert ticket.price_zone is None | ||
assert ticket.redeemer_email is None | ||
assert ticket.redeemer_id is None | ||
assert ticket.redeemer is None | ||
|
@@ -137,6 +139,7 @@ def test_get_ticket_shared_redeemed(requests_mock): | |
assert ticket.price == 199 | ||
assert ticket.price_code is None | ||
assert ticket.price_type is None | ||
assert ticket.price_zone is None | ||
assert ticket.redeemer_email == '[email protected]' | ||
assert ticket.redeemer_id == 1234 | ||
assert isinstance(ticket.redeemer, User) | ||
|