Skip to content

Commit 2da2bb2

Browse files
committed
Take pre_moderated on group PATCH
1 parent 5a797ea commit 2da2bb2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

h/schemas/api/group.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"description": {"type": "string", "maxLength": GROUP_DESCRIPTION_MAX_LENGTH},
1919
"groupid": {"type": "string", "pattern": GROUPID_PATTERN},
2020
"type": {"enum": ["private", "restricted", "open"]},
21+
"pre_moderated": {"type": "boolean"},
2122
}
2223

2324

tests/unit/h/views/api/groups_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ def test_it_when_request_json_body_is_invalid(
337337
type="private",
338338
),
339339
),
340+
({"pre_moderated": True}, call.update(sentinel.group, pre_moderated=True)),
340341
],
341342
)
342343
def test_update(

0 commit comments

Comments
 (0)