MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestTeamInfoTextUsesCommandOutput

Function TestTeamInfoTextUsesCommandOutput

cmd/team_json_test.go:150–164  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

148}
149
150func TestTeamInfoTextUsesCommandOutput(t *testing.T) {
151 stubTeamClient(t, &mockTeamClient{
152 getInfoFn: func() (*team.TeamGetInfoResult, error) {
153 return &team.TeamGetInfoResult{Name: "Example Team", TeamId: "tid:team", NumLicensedUsers: 10, NumProvisionedUsers: 7}, nil
154 },
155 })
156
157 cmd, stdout := teamTestCmd(t, false)
158 if err := info(cmd, nil); err != nil {
159 t.Fatalf("info error: %v", err)
160 }
161 if got := stdout.String(); !strings.Contains(got, "Name:") || !strings.Contains(got, "Example Team") {
162 t.Fatalf("stdout = %q, want team info text", got)
163 }
164}
165
166func TestTeamListMembersJSONPaginates(t *testing.T) {
167 continueCalled := false

Callers

nothing calls this directly

Calls 3

stubTeamClientFunction · 0.85
teamTestCmdFunction · 0.85
infoFunction · 0.85

Tested by

no test coverage detected