mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +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.test_classes import ZulipTestCase
|
||||||
from zerver.lib.events import do_events_register
|
from zerver.lib.events import do_events_register
|
||||||
from zerver.lib.actions import update_user_presence
|
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]]]
|
GENERATOR_FUNCTIONS = dict() # type: Dict[str, Callable[..., Dict[Any, Any]]]
|
||||||
REGISTERED_GENERATOR_FUNCTIONS = set() # type: Set[str]
|
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]
|
"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]:
|
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 {
|
return {
|
||||||
"group_id": user_group.id,
|
"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.
|
# 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
|
# 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.
|
# state of the DB. This results in the curl request to fail.
|
||||||
'delete-user-group.md',
|
|
||||||
'update-stream.md',
|
'update-stream.md',
|
||||||
# Endpoint can be called only by administrators.
|
# Endpoint can be called only by administrators.
|
||||||
'create-user.md',
|
'create-user.md',
|
||||||
|
|||||||
Reference in New Issue
Block a user