(t *testing.T)
| 436 | } |
| 437 | |
| 438 | func TestRun_InvalidPlanErrors(t *testing.T) { |
| 439 | srv := newServer(t, `{"has_payment_method": true}`) |
| 440 | defer srv.Close() |
| 441 | |
| 442 | opts, _, _ := newOpts(t, srv, false) |
| 443 | opts.Plan = "bogus" |
| 444 | opts.AcceptTerms = true |
| 445 | |
| 446 | err := runCreateCmd(context.Background(), opts) |
| 447 | require.Error(t, err) |
| 448 | assert.Contains(t, err.Error(), "invalid plan") |
| 449 | assert.Equal(t, 0, srv.createCalls) |
| 450 | } |
| 451 | |
| 452 | func TestRun_InteractivePickerHidesPaidWithoutBilling(t *testing.T) { |
| 453 | srv := newServer(t, `{"has_payment_method": false}`) |
nothing calls this directly
no test coverage detected