mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
tests: Remove get-raw-message from curl test exclude_list.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user