mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
tests: Remove delete-user-group from curl test exclude_list.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user