(t *testing.T)
| 438 | } |
| 439 | |
| 440 | func TestInitDbxStillRequiresAuthForDropboxCommands(t *testing.T) { |
| 441 | t.Setenv(envAccessToken, "") |
| 442 | t.Setenv(envAuthFile, filepath.Join(t.TempDir(), "missing-auth.json")) |
| 443 | |
| 444 | cmd := newAuthTestCommand() |
| 445 | if err := initDbx(cmd, nil); err == nil { |
| 446 | t.Fatal("expected Dropbox command to require auth") |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | func TestInitDbxUsesAccessTokenEnv(t *testing.T) { |
| 451 | origConfig := config |
nothing calls this directly
no test coverage detected