Skip to content

Commit d06b656

Browse files
committed
Update test_query.py
1 parent 0293a06 commit d06b656

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

tests/test_query.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def request_callback(request):
7676
@responses.activate
7777
def test_execute_query():
7878
responses.add_callback(
79-
responses.POST, 'https://graphql.us.jupiterone.io/',
79+
responses.POST, 'https://graphql.us.jupiterone.io',
8080
callback=build_results(),
8181
content_type='application/json',
8282
)
@@ -103,7 +103,7 @@ def test_execute_query():
103103
def test_limit_skip_query_v1():
104104

105105
responses.add_callback(
106-
responses.POST, 'https://graphql.us.jupiterone.io/',
106+
responses.POST, 'https://graphql.us.jupiterone.io',
107107
callback=build_results(),
108108
content_type='application/json',
109109
)
@@ -126,13 +126,13 @@ def test_limit_skip_query_v1():
126126
def test_cursor_query_v1():
127127

128128
responses.add_callback(
129-
responses.POST, 'https://graphql.us.jupiterone.io/',
129+
responses.POST, 'https://graphql.us.jupiterone.io',
130130
callback=build_results(cursor='cursor_value'),
131131
content_type='application/json',
132132
)
133133

134134
responses.add_callback(
135-
responses.POST, 'https://graphql.us.jupiterone.io/',
135+
responses.POST, 'https://graphql.us.jupiterone.io',
136136
callback=build_results(),
137137
content_type='application/json',
138138
)
@@ -179,7 +179,7 @@ def request_callback(request):
179179
return 200, headers, json.dumps(response)
180180

181181
responses.add_callback(
182-
responses.POST, 'https://graphql.us.jupiterone.io/',
182+
responses.POST, 'https://graphql.us.jupiterone.io',
183183
callback=request_callback,
184184
content_type='application/json',
185185
)
@@ -229,7 +229,7 @@ def request_callback(request):
229229
return (200, headers, json.dumps(response))
230230

231231
responses.add_callback(
232-
responses.POST, 'https://graphql.us.jupiterone.io/',
232+
responses.POST, 'https://graphql.us.jupiterone.io',
233233
callback=request_callback,
234234
content_type='application/json',
235235
)
@@ -249,19 +249,19 @@ def request_callback(request):
249249
@responses.activate
250250
def test_retry_on_limit_skip_query():
251251
responses.add_callback(
252-
responses.POST, 'https://graphql.us.jupiterone.io/',
252+
responses.POST, 'https://graphql.us.jupiterone.io',
253253
callback=build_results(response_code=429),
254254
content_type='application/json',
255255
)
256256

257257
responses.add_callback(
258-
responses.POST, 'https://graphql.us.jupiterone.io/',
258+
responses.POST, 'https://graphql.us.jupiterone.io',
259259
callback=build_results(response_code=503),
260260
content_type='application/json',
261261
)
262262

263263
responses.add_callback(
264-
responses.POST, 'https://graphql.us.jupiterone.io/',
264+
responses.POST, 'https://graphql.us.jupiterone.io',
265265
callback=build_results(),
266266
content_type='application/json',
267267
)
@@ -283,19 +283,19 @@ def test_retry_on_limit_skip_query():
283283
@responses.activate
284284
def test_retry_on_cursor_query():
285285
responses.add_callback(
286-
responses.POST, 'https://graphql.us.jupiterone.io/',
286+
responses.POST, 'https://graphql.us.jupiterone.io',
287287
callback=build_results(response_code=429),
288288
content_type='application/json',
289289
)
290290

291291
responses.add_callback(
292-
responses.POST, 'https://graphql.us.jupiterone.io/',
292+
responses.POST, 'https://graphql.us.jupiterone.io',
293293
callback=build_results(response_code=503),
294294
content_type='application/json',
295295
)
296296

297297
responses.add_callback(
298-
responses.POST, 'https://graphql.us.jupiterone.io/',
298+
responses.POST, 'https://graphql.us.jupiterone.io',
299299
callback=build_results(),
300300
content_type='application/json',
301301
)
@@ -315,7 +315,7 @@ def test_retry_on_cursor_query():
315315
@responses.activate
316316
def test_avoid_retry_on_limit_skip_query():
317317
responses.add_callback(
318-
responses.POST, 'https://graphql.us.jupiterone.io/',
318+
responses.POST, 'https://graphql.us.jupiterone.io',
319319
callback=build_results(response_code=404),
320320
content_type='application/json',
321321
)
@@ -333,7 +333,7 @@ def test_avoid_retry_on_limit_skip_query():
333333
@responses.activate
334334
def test_avoid_retry_on_cursor_query():
335335
responses.add_callback(
336-
responses.POST, 'https://graphql.us.jupiterone.io/',
336+
responses.POST, 'https://graphql.us.jupiterone.io',
337337
callback=build_results(response_code=404),
338338
content_type='application/json',
339339
)
@@ -349,7 +349,7 @@ def test_avoid_retry_on_cursor_query():
349349
@responses.activate
350350
def test_warn_limit_and_skip_deprecated():
351351
responses.add_callback(
352-
responses.POST, 'https://graphql.us.jupiterone.io/',
352+
responses.POST, 'https://graphql.us.jupiterone.io',
353353
callback=build_results(),
354354
content_type='application/json',
355355
)
@@ -368,7 +368,7 @@ def test_warn_limit_and_skip_deprecated():
368368
@responses.activate
369369
def test_unauthorized_query_v1():
370370
responses.add_callback(
371-
responses.POST, 'https://graphql.us.jupiterone.io/',
371+
responses.POST, 'https://graphql.us.jupiterone.io',
372372
callback=build_error_results(401, b'Unauthorized', 'text/plain'),
373373
content_type='application/json',
374374
)
@@ -385,7 +385,7 @@ def test_unauthorized_query_v1():
385385
@responses.activate
386386
def test_five_hundred_error_query_v1():
387387
responses.add_callback(
388-
responses.POST, 'https://graphql.us.jupiterone.io/',
388+
responses.POST, 'https://graphql.us.jupiterone.io',
389389
callback=build_error_results(500, 'Internal Server Error', 'text/plain'),
390390
content_type='application/json',
391391
)
@@ -406,7 +406,7 @@ def test_bad_gateway_error_query_v1():
406406
}
407407

408408
responses.add_callback(
409-
responses.POST, 'https://graphql.us.jupiterone.io/',
409+
responses.POST, 'https://graphql.us.jupiterone.io',
410410
callback=build_error_results(502, json.dumps(error_json), ),
411411
content_type='application/json',
412412
)

0 commit comments

Comments
 (0)