tests: Remove update-user-group from curl test exclude_list.

This commit is contained in:
Vishnu KS
2019-11-14 15:35:28 +07:00
committed by Tim Abbott
parent 4b212efba6
commit ee2d20ff3c
3 changed files with 10 additions and 3 deletions

View File

@@ -4,10 +4,11 @@ from functools import wraps
from django.utils.timezone import now as timezone_now
from zerver.models import Client, UserPresence
from zerver.models import Client, UserPresence, UserGroup, get_realm
from zerver.lib.test_classes import ZulipTestCase
from zerver.lib.events import do_events_register
from zerver.lib.actions import update_user_presence
from zerver.lib.user_groups import create_user_group
GENERATOR_FUNCTIONS = dict() # type: Dict[str, Callable[..., Dict[Any, Any]]]
REGISTERED_GENERATOR_FUNCTIONS = set() # type: Set[str]
@@ -148,3 +149,10 @@ def create_user_group_data() -> Dict[str, Any]:
return {
"members": [helpers.example_user("hamlet").id, helpers.example_user("othello").id]
}
@openapi_param_value_generator(["/user_groups/{group_id}:patch"])
def get_temp_user_group_id() -> Dict[str, str]:
user_group = UserGroup.objects.get(name="marketing")
return {
"group_id": user_group.id,
}

View File

@@ -14,7 +14,6 @@ exclude_list = [
# The endpoint in these docs expect one or more param values that reflects the DB state.
# We currently get the example values from openapi specs and they don't refelect the
# state of the DB. This results in the curl request to fail.
'update-user-group.md',
'delete-user-group.md',
'update-stream.md',
# Endpoint can be called only by administrators.

View File

@@ -2780,7 +2780,7 @@ paths:
description: The new name of the group.
schema:
type: string
example: marketing
example: marketing team
required: true
- name: description
in: query