MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / test_groups

Method test_groups

tests/slack_sdk/scim/test_client.py:47–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 pass
46
47 def test_groups(self):
48 client = SCIMClient(base_url="http://localhost:8888/", token="xoxp-valid")
49 client.search_groups(start_index=0, count=1)
50 client.read_group("S111")
51
52 now = str(time.time())[:10]
53 group = Group(
54 display_name=f"TestGroup_{now}",
55 members=[GroupMember(value="U111")],
56 )
57 client.create_group(group)
58 # The mock server does not work for PATH requests
59 try:
60 client.patch_group("S111", partial_group=Group(display_name=f"TestGroup_{now}_2"))
61 except:
62 pass
63 group.id = "S111"
64 group.display_name = "updated"
65 try:
66 client.update_group(group)
67 except:
68 pass
69 try:
70 client.delete_group("S111")
71 except:
72 pass

Callers

nothing calls this directly

Calls 9

search_groupsMethod · 0.95
read_groupMethod · 0.95
create_groupMethod · 0.95
patch_groupMethod · 0.95
update_groupMethod · 0.95
delete_groupMethod · 0.95
SCIMClientClass · 0.90
GroupClass · 0.90
GroupMemberClass · 0.90

Tested by

no test coverage detected