Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FAIL: test_successful_booking_archivation_after_cancellation (tickets.api.v1.tests.test_booking.BookingDeactivationEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 341, in test_successful_booking_archivation_after_cancellation
- self.book(connector="amadeus")
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_successful_booking_cancellation (tickets.api.v1.tests.test_booking.BookingDeactivationEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 323, in test_successful_booking_cancellation
- self.book(connector="amadeus")
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_book_one_way_ticket (tickets.api.v1.tests.test_booking.BookingEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 279, in test_book_one_way_ticket
- r = self.checker_post(self.BOOKING_REQUEST, 201)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_get_bookings (tickets.api.v1.tests.test_booking.BookingListEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 383, in test_get_bookings
- self.book()
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_insufficient_money (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 426, in test_insufficient_money
- self.book(connector=self.connector)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book
- super(BookingPurchaseEndpointTest, self).book(*args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_purchase_successfully (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 432, in test_purchase_successfully
- self.book(connector=self.connector)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book
- super(BookingPurchaseEndpointTest, self).book(*args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: test_purchase_successfully_with_data_sending (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 436, in test_purchase_successfully_with_data_sending
- self.book(connector=self.connector)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book
- super(BookingPurchaseEndpointTest, self).book(*args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book
- r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/")
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post
- return self._checker_request(self.client.post, data, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request
- return self._checker(data, resp, *args, **kwargs)
- File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker
- "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data))
- AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400`
- Content:
- {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true}
- Data:
- {"passengers": [{"surname": "Familiya", "document_expiry_date": "11.11.2020", "gender": "1", "document_country_id": 330, "given_name": "Imya", "birth_date": "17.11.1987", "document_id": "111111111111"}], "flights": [{"min_price": 0, "time": "01:30", "duration": 90, "legs": [{"origin": 6852, "arrival": "2017-09-01T10:40:00", "destination_terminal": "", "origin_terminal": "", "service_class": "ECNM", "fare_class": "O", "measurement": "kg", "seats": "4", "airplane": {"code": "735", "name": "Boeing 757-300"}, "time_readable": "1h 30m", "destination": 2223, "departure": "2017-09-01T09:10:00", "baggage": 20, "flight_number": "704", "airline": "DV", "time": "01:30", "fare_basis": "OPROW"}], "time_readable": "1h 30m", "stops": [], "ref_number": null}], "uid": "YeAlKE1yISWTGThRXZd85cjJL2XvdhcN", "service_class": "ECNM", "validating_airline": "DV", "passengers_types": {"ADT": "1", "CHD": "0", "INF": "0"}, "user_phone": "+77021414222", "voucher_code": "", "user_email": "undead.thunderbird@gmail.com", "option": {"combination_id": "10676888490001", "bookable": true, "sequence_number": 0, "validating_airline": {"code": "DV", "name": "Jsc Aircompany Scat", "str": "DV Jsc Aircompany Scat"}, "gds_type": 1}}
- -------------------- >> begin captured logging << --------------------
- santufei.tickets.api.v1.views: ERROR: None
- --------------------- >> end captured logging << ---------------------
- ----------------------------------------------------------------------
- Ran 9 tests in 502.782s
- FAILED (failures=8)
- Destroying test database for alias 'default'...
Add Comment
Please, Sign In to add comment