SHOW:
|
|
- or go back to the newest paste.
1 | FAIL: test_successful_booking_archivation_after_cancellation (tickets.api.v1.tests.test_booking.BookingDeactivationEndpointTest) | |
2 | ---------------------------------------------------------------------- | |
3 | Traceback (most recent call last): | |
4 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 341, in test_successful_booking_archivation_after_cancellation | |
5 | self.book(connector="amadeus") | |
6 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
7 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
8 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
9 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
10 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
11 | return self._checker(data, resp, *args, **kwargs) | |
12 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
13 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
14 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
15 | Content: | |
16 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
17 | Data: | |
18 | {"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}} | |
19 | -------------------- >> begin captured logging << -------------------- | |
20 | santufei.tickets.api.v1.views: ERROR: None | |
21 | --------------------- >> end captured logging << --------------------- | |
22 | ||
23 | ====================================================================== | |
24 | FAIL: test_successful_booking_cancellation (tickets.api.v1.tests.test_booking.BookingDeactivationEndpointTest) | |
25 | ---------------------------------------------------------------------- | |
26 | Traceback (most recent call last): | |
27 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 323, in test_successful_booking_cancellation | |
28 | self.book(connector="amadeus") | |
29 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
30 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
31 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
32 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
33 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
34 | return self._checker(data, resp, *args, **kwargs) | |
35 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
36 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
37 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
38 | Content: | |
39 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
40 | Data: | |
41 | {"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}} | |
42 | -------------------- >> begin captured logging << -------------------- | |
43 | santufei.tickets.api.v1.views: ERROR: None | |
44 | --------------------- >> end captured logging << --------------------- | |
45 | ||
46 | ====================================================================== | |
47 | FAIL: test_book_one_way_ticket (tickets.api.v1.tests.test_booking.BookingEndpointTest) | |
48 | ---------------------------------------------------------------------- | |
49 | Traceback (most recent call last): | |
50 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 279, in test_book_one_way_ticket | |
51 | r = self.checker_post(self.BOOKING_REQUEST, 201) | |
52 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
53 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
54 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
55 | return self._checker(data, resp, *args, **kwargs) | |
56 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
57 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
58 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
59 | Content: | |
60 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
61 | Data: | |
62 | {"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}} | |
63 | -------------------- >> begin captured logging << -------------------- | |
64 | santufei.tickets.api.v1.views: ERROR: None | |
65 | --------------------- >> end captured logging << --------------------- | |
66 | ||
67 | ====================================================================== | |
68 | FAIL: test_get_bookings (tickets.api.v1.tests.test_booking.BookingListEndpointTest) | |
69 | ---------------------------------------------------------------------- | |
70 | Traceback (most recent call last): | |
71 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 383, in test_get_bookings | |
72 | self.book() | |
73 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
74 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
75 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
76 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
77 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
78 | return self._checker(data, resp, *args, **kwargs) | |
79 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
80 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
81 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
82 | Content: | |
83 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
84 | Data: | |
85 | {"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}} | |
86 | -------------------- >> begin captured logging << -------------------- | |
87 | santufei.tickets.api.v1.views: ERROR: None | |
88 | --------------------- >> end captured logging << --------------------- | |
89 | ||
90 | ====================================================================== | |
91 | FAIL: test_insufficient_money (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest) | |
92 | ---------------------------------------------------------------------- | |
93 | Traceback (most recent call last): | |
94 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 426, in test_insufficient_money | |
95 | self.book(connector=self.connector) | |
96 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book | |
97 | super(BookingPurchaseEndpointTest, self).book(*args, **kwargs) | |
98 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
99 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
100 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
101 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
102 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
103 | return self._checker(data, resp, *args, **kwargs) | |
104 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
105 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
106 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
107 | Content: | |
108 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
109 | Data: | |
110 | {"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}} | |
111 | -------------------- >> begin captured logging << -------------------- | |
112 | santufei.tickets.api.v1.views: ERROR: None | |
113 | --------------------- >> end captured logging << --------------------- | |
114 | ||
115 | ====================================================================== | |
116 | FAIL: test_purchase_successfully (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest) | |
117 | ---------------------------------------------------------------------- | |
118 | Traceback (most recent call last): | |
119 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 432, in test_purchase_successfully | |
120 | self.book(connector=self.connector) | |
121 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book | |
122 | super(BookingPurchaseEndpointTest, self).book(*args, **kwargs) | |
123 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
124 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
125 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
126 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
127 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
128 | return self._checker(data, resp, *args, **kwargs) | |
129 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
130 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
131 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
132 | Content: | |
133 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
134 | Data: | |
135 | {"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}} | |
136 | -------------------- >> begin captured logging << -------------------- | |
137 | santufei.tickets.api.v1.views: ERROR: None | |
138 | --------------------- >> end captured logging << --------------------- | |
139 | ||
140 | ====================================================================== | |
141 | FAIL: test_purchase_successfully_with_data_sending (tickets.api.v1.tests.test_booking.BookingPurchaseEndpointTest) | |
142 | ---------------------------------------------------------------------- | |
143 | Traceback (most recent call last): | |
144 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 436, in test_purchase_successfully_with_data_sending | |
145 | self.book(connector=self.connector) | |
146 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 416, in book | |
147 | super(BookingPurchaseEndpointTest, self).book(*args, **kwargs) | |
148 | File "/home/chynajake/Work/santufei/santufei/tickets/api/v1/tests/test_booking.py", line 196, in book | |
149 | r = self.checker_post(self.BOOKING_REQUEST, 201, url_postfix="/tickets/book/") | |
150 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 67, in checker_post | |
151 | return self._checker_request(self.client.post, data, *args, **kwargs) | |
152 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 64, in _checker_request | |
153 | return self._checker(data, resp, *args, **kwargs) | |
154 | File "/home/chynajake/Work/santufei/santufei/registration/api/v1/tests/helpers.py", line 83, in _checker | |
155 | "Wrong HTTP status code. Expected: `{}`. Got: `{}`".format(expected_code, resp.status_code), resp, data)) | |
156 | AssertionError: Wrong HTTP status code. Expected: `201`. Got: `400` | |
157 | Content: | |
158 | {"message_header":"\u041e\u0448\u0438\u0431\u043a\u0430","message":"GDS error","error_code":330,"error":true} | |
159 | Data: | |
160 | {"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}} | |
161 | -------------------- >> begin captured logging << -------------------- | |
162 | santufei.tickets.api.v1.views: ERROR: None | |
163 | --------------------- >> end captured logging << --------------------- | |
164 | ||
165 | ---------------------------------------------------------------------- | |
166 | Ran 9 tests in 502.782s | |
167 | ||
168 | FAILED (failures=8) | |
169 | Destroying test database for alias 'default'... |