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

This commit is contained in:
Vishnu Ks
2019-11-14 08:16:11 +00:00
committed by Tim Abbott
parent 473d178fbc
commit 4b212efba6
2 changed files with 6 additions and 1 deletions

View File

@@ -142,3 +142,9 @@ def get_user_presence() -> Dict[None, None]:
client = Client.objects.create(name="curl-test-client-3")
update_user_presence(iago, client, timezone_now(), UserPresence.ACTIVE, False)
return {}
@openapi_param_value_generator(["/user_groups/create:post"])
def create_user_group_data() -> Dict[str, Any]:
return {
"members": [helpers.example_user("hamlet").id, helpers.example_user("othello").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.
'create-user-group.md',
'update-user-group.md',
'delete-user-group.md',
'update-stream.md',