(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 52 | func TestDeleteUser(t *testing.T) { |
| 53 | u := test.CreateUser() |
nothing calls this directly
no test coverage detected