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