(t *testing.T)
| 266 | } |
| 267 | |
| 268 | func TestRun_FreeNonInteractive(t *testing.T) { |
| 269 | srv := newServer(t, `{"has_payment_method": false}`) |
| 270 | defer srv.Close() |
| 271 | |
| 272 | opts, out, _ := newOpts(t, srv, false) |
| 273 | opts.AcceptTerms = true |
| 274 | |
| 275 | require.NoError(t, runCreateCmd(context.Background(), opts)) |
| 276 | assert.Equal(t, 1, srv.createCalls) |
| 277 | assert.Equal(t, 0, srv.patchCalls) |
| 278 | assert.Contains(t, out.String(), "APP1") |
| 279 | } |
| 280 | |
| 281 | func TestRun_NonInteractiveRequiresAcceptTerms(t *testing.T) { |
| 282 | srv := newServer(t, `{"has_payment_method": true}`) |
nothing calls this directly
no test coverage detected