You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
status=201, # The ClinVar API returns code 201 when request is successful (created)
324
-
)
325
-
326
-
# GIVEN a mocked error response from apitest actions endpoint
327
-
actions: list[dict] = [
328
-
{
329
-
"id": "SUB14404390-1",
330
-
"targetDb": "clinvar-test",
331
-
"status": "error",
332
-
"updated": "2024-04-26T06:41:04.533900Z",
333
-
"responses": [
334
-
{
335
-
"status": "error",
336
-
"message": {
337
-
"severity": "error",
338
-
"errorCode": "2",
339
-
"text": 'Your ClinVar submission processing status is "Error". Please find the details in the file referenced by actions[0].responses[0].files[0].url.',
# THEN the ClinVar API proxy should return "success"
332
+
assertresponse.status_code==201# Created
333
+
assertresponse.json()["id"] ==DEMO_SUBMISSION_ID
334
+
335
+
@responses.activate
336
+
deftest_apitest_status():
337
+
"""Test the endpoint that sends GET requests to the apitest actions ClinVar endpoint."""
338
+
339
+
# GIVEN a mocked error response from apitest actions endpoint
340
+
actions: list[dict] = [
341
+
{
342
+
"id": "SUB14404390-1",
343
+
"targetDb": "clinvar-test",
344
+
"status": "error",
345
+
"updated": "2024-04-26T06:41:04.533900Z",
346
+
"responses": [
347
+
{
348
+
"status": "error",
349
+
"message": {
350
+
"severity": "error",
351
+
"errorCode": "2",
352
+
"text": 'Your ClinVar submission processing status is "Error". Please find the details in the file referenced by actions[0].responses[0].files[0].url.',
0 commit comments