tests: Remove get-raw-message from curl test exclude_list.

This commit is contained in:
Vishnu KS
2019-10-21 16:13:00 +05:30
committed by Tim Abbott
parent 722f3a6cfe
commit 8e9ccdf376
6 changed files with 67 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ import re
import json
import inspect
from django.conf import settings
from markdown.extensions import Extension
from markdown.preprocessors import Preprocessor
from typing import Any, Dict, Optional, List, Tuple
@@ -159,6 +161,10 @@ def generate_curl_example(endpoint: str, method: str,
openapi_entry = openapi_spec.spec()['paths'][endpoint][method.lower()]
openapi_params = openapi_entry.get("parameters", [])
if settings.RUNNING_OPENAPI_CURL_TEST: # nocoverage
from zerver.openapi.curl_param_value_generators import patch_openapi_params
openapi_params = patch_openapi_params(endpoint + ":" + method.lower(), openapi_params)
format_dict = {}
for param in openapi_params:
if param["in"] != "path":