(t *testing.T)
| 648 | } |
| 649 | |
| 650 | func TestWithRootNamespaceSkipsTeamManage(t *testing.T) { |
| 651 | cfg := makeDropboxConfig("team-token", false, "", "") |
| 652 | stubUsersClient(t, &mockUsersClient{ |
| 653 | getCurrentAccountFn: func() (*users.FullAccount, error) { |
| 654 | t.Fatal("team manage token should not fetch current account") |
| 655 | return nil, nil |
| 656 | }, |
| 657 | }) |
| 658 | |
| 659 | got := withRootNamespace(cfg, tokenTeamManage) |
| 660 | |
| 661 | if got.PathRoot != "" { |
| 662 | t.Fatalf("path root = %q, want empty", got.PathRoot) |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | func assertCurrentAuthContext(t *testing.T, source string, refreshable bool, authFile string) { |
| 667 | t.Helper() |
nothing calls this directly
no test coverage detected