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

This commit is contained in:
Vishnu Ks
2019-11-14 08:41:39 +00:00
committed by Tim Abbott
parent ee2d20ff3c
commit be49dd4f30
2 changed files with 2 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ 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]
@@ -150,9 +149,9 @@ def create_user_group_data() -> Dict[str, Any]:
"members": [helpers.example_user("hamlet").id, helpers.example_user("othello").id]
}
@openapi_param_value_generator(["/user_groups/{group_id}:patch"])
@openapi_param_value_generator(["/user_groups/{group_id}:patch", "/user_groups/{group_id}:delete"])
def get_temp_user_group_id() -> Dict[str, str]:
user_group = UserGroup.objects.get(name="marketing")
user_group, _ = UserGroup.objects.get_or_create(name="temp", realm=get_realm("zulip"))
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.
'delete-user-group.md',
'update-stream.md',
# Endpoint can be called only by administrators.
'create-user.md',