MCPcopy Create free account
hub / github.com/GetStream/stream-cli / TestUpdateUserPartial

Function TestUpdateUserPartial

pkg/cmd/chat/user/user_test.go:40–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestUpdateUserPartial(t *testing.T) {
41 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)
42 userId := test.CreateUser()
43 t.Cleanup(func() {
44 test.DeleteUser(userId)
45 })
46
47 cmd.SetArgs([]string{"update-user-partial", "-i", userId, "-s", "{\"color\":\"blue\",\"age\":27}"})
48 _, err := cmd.ExecuteC()
49 require.NoError(t, err)
50}
51
52func TestDeleteUser(t *testing.T) {
53 u := test.CreateUser()

Callers

nothing calls this directly

Calls 4

CreateUserFunction · 0.92
DeleteUserFunction · 0.92
NewCmdsFunction · 0.70

Tested by

no test coverage detected