(self)
| 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 |
nothing calls this directly
no test coverage detected