(t *testing.T)
| 1360 | } |
| 1361 | |
| 1362 | func TestIssueCreate_disabledIssues(t *testing.T) { |
| 1363 | http := &httpmock.Registry{} |
| 1364 | defer http.Verify(t) |
| 1365 | |
| 1366 | http.Register( |
| 1367 | httpmock.GraphQL(`query IssueRepositoryInfo\b`), |
| 1368 | httpmock.StringResponse(` |
| 1369 | { "data": { "repository": { |
| 1370 | "id": "REPOID", |
| 1371 | "hasIssuesEnabled": false |
| 1372 | } } }`), |
| 1373 | ) |
| 1374 | |
| 1375 | _, err := runCommand(http, true, `-t heres -b johnny`, nil) |
| 1376 | if err == nil || err.Error() != "the 'OWNER/REPO' repository has disabled issues" { |
| 1377 | t.Errorf("error running command `issue create`: %v", err) |
| 1378 | } |
| 1379 | } |
| 1380 | |
| 1381 | func TestIssueCreate_AtMeAssignee(t *testing.T) { |
| 1382 | http := &httpmock.Registry{} |
nothing calls this directly
no test coverage detected