(self, exchange, method, data, type, skip_keys)
| 948 | return new_input |
| 949 | |
| 950 | def test_request_statically(self, exchange, method, data, type, skip_keys): |
| 951 | output = None |
| 952 | request_url = None |
| 953 | if self.info: |
| 954 | dump('[INFO] STATIC REQUEST TEST:', method, ':', data['description']) |
| 955 | try: |
| 956 | if not is_sync(): |
| 957 | call_exchange_method_dynamically(exchange, method, self.sanitize_data_input(data['input'])) |
| 958 | else: |
| 959 | call_exchange_method_dynamically_sync(exchange, method, self.sanitize_data_input(data['input'])) |
| 960 | except Exception as e: |
| 961 | if not (isinstance(e, InvalidProxySettings)): |
| 962 | raise e |
| 963 | output = exchange.last_request_body |
| 964 | request_url = exchange.last_request_url |
| 965 | try: |
| 966 | call_output = exchange.safe_value(data, 'output') |
| 967 | self.assert_static_request_output(exchange, type, skip_keys, data['url'], request_url, call_output, output) |
| 968 | except Exception as e: |
| 969 | self.request_tests_failed = True |
| 970 | error_message = '[' + self.lang + '][STATIC_REQUEST]' + '[' + exchange.id + ']' + '[' + method + ']' + '[' + data['description'] + ']' + exception_message(e) |
| 971 | dump('[TEST_FAILURE]' + error_message) |
| 972 | return True |
| 973 | |
| 974 | def test_response_statically(self, exchange, method, skip_keys, data): |
| 975 | expected_result = exchange.safe_value(data, 'parsedResponse') |
no test coverage detected