|
124 | 124 | "values": ["0", "1", "2", "3", "4", "5", "6", "7"], |
125 | 125 | "cursor_field": "item_id", |
126 | 126 | }, |
127 | | - "" "requester": { |
| 127 | + "requester": { |
128 | 128 | "path": "/v3/marketing/lists", |
129 | 129 | "authenticator": { |
130 | 130 | "type": "BearerAuthenticator", |
|
175 | 175 | "values": ["0", "1", "2", "3", "4", "5", "6", "7"], |
176 | 176 | "cursor_field": "item_id", |
177 | 177 | }, |
178 | | - "" "requester": { |
| 178 | + "requester": { |
179 | 179 | "path": "/v3/marketing/lists", |
180 | 180 | "authenticator": { |
181 | 181 | "type": "BearerAuthenticator", |
|
348 | 348 | "values": ["0", "1", "2", "3", "4", "5", "6", "7"], |
349 | 349 | "cursor_field": "item_id", |
350 | 350 | }, |
351 | | - "" "requester": { |
| 351 | + "requester": { |
352 | 352 | "path": "/v3/marketing/lists", |
353 | 353 | "authenticator": {"type": "OAuthAuthenticator", "api_token": "{{ config.apikey }}"}, |
354 | 354 | "request_parameters": {"a_param": "10"}, |
@@ -1221,9 +1221,9 @@ def test_handle_read_external_requests(deployment_mode, url_base, expected_error |
1221 | 1221 | source, config, catalog, _A_PER_PARTITION_STATE, limits |
1222 | 1222 | ).record.data |
1223 | 1223 | if expected_error: |
1224 | | - assert ( |
1225 | | - len(output_data["logs"]) > 0 |
1226 | | - ), "Expected at least one log message with the expected error" |
| 1224 | + assert len(output_data["logs"]) > 0, ( |
| 1225 | + "Expected at least one log message with the expected error" |
| 1226 | + ) |
1227 | 1227 | error_message = output_data["logs"][0] |
1228 | 1228 | assert error_message["level"] == "ERROR" |
1229 | 1229 | assert expected_error in error_message["stacktrace"] |
@@ -1317,9 +1317,9 @@ def test_handle_read_external_oauth_request(deployment_mode, token_url, expected |
1317 | 1317 | source, config, catalog, _A_PER_PARTITION_STATE, limits |
1318 | 1318 | ).record.data |
1319 | 1319 | if expected_error: |
1320 | | - assert ( |
1321 | | - len(output_data["logs"]) > 0 |
1322 | | - ), "Expected at least one log message with the expected error" |
| 1320 | + assert len(output_data["logs"]) > 0, ( |
| 1321 | + "Expected at least one log message with the expected error" |
| 1322 | + ) |
1323 | 1323 | error_message = output_data["logs"][0] |
1324 | 1324 | assert error_message["level"] == "ERROR" |
1325 | 1325 | assert expected_error in error_message["stacktrace"] |
|
0 commit comments