(t *testing.T)
| 345 | } |
| 346 | |
| 347 | func TestCopilotService_ListCopilotSeats(t *testing.T) { |
| 348 | t.Parallel() |
| 349 | client, mux, _ := setup(t) |
| 350 | |
| 351 | mux.HandleFunc("/orgs/o/copilot/billing/seats", func(w http.ResponseWriter, r *http.Request) { |
| 352 | testMethod(t, r, "GET") |
| 353 | testFormValues(t, r, values{ |
| 354 | "per_page": "100", |
| 355 | "page": "1", |
| 356 | }) |
| 357 | fmt.Fprint(w, `{ |
| 358 | "total_seats": 4, |
| 359 | "seats": [ |
| 360 | { |
| 361 | "created_at": "2021-08-03T18:00:00-06:00", |
| 362 | "updated_at": "2021-09-23T15:00:00-06:00", |
| 363 | "pending_cancellation_date": null, |
| 364 | "last_activity_at": "2021-10-14T00:53:32-06:00", |
| 365 | "last_activity_editor": "vscode/1.77.3/copilot/1.86.82", |
| 366 | "assignee": { |
| 367 | "login": "octocat", |
| 368 | "id": 1, |
| 369 | "node_id": "MDQ6VXNlcjE=", |
| 370 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", |
| 371 | "gravatar_id": "", |
| 372 | "url": "https://api.github.com/users/octocat", |
| 373 | "html_url": "https://github.com/octocat", |
| 374 | "followers_url": "https://api.github.com/users/octocat/followers", |
| 375 | "following_url": "https://api.github.com/users/octocat/following{/other_user}", |
| 376 | "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", |
| 377 | "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", |
| 378 | "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", |
| 379 | "organizations_url": "https://api.github.com/users/octocat/orgs", |
| 380 | "repos_url": "https://api.github.com/users/octocat/repos", |
| 381 | "events_url": "https://api.github.com/users/octocat/events{/privacy}", |
| 382 | "received_events_url": "https://api.github.com/users/octocat/received_events", |
| 383 | "type": "User", |
| 384 | "site_admin": false |
| 385 | }, |
| 386 | "assigning_team": { |
| 387 | "id": 1, |
| 388 | "node_id": "MDQ6VGVhbTE=", |
| 389 | "url": "https://api.github.com/teams/1", |
| 390 | "html_url": "https://github.com/orgs/github/teams/justice-league", |
| 391 | "name": "Justice League", |
| 392 | "slug": "justice-league", |
| 393 | "description": "A great team.", |
| 394 | "privacy": "closed", |
| 395 | "notification_setting": "notifications_enabled", |
| 396 | "permission": "admin", |
| 397 | "members_url": "https://api.github.com/teams/1/members{/member}", |
| 398 | "repositories_url": "https://api.github.com/teams/1/repos", |
| 399 | "parent": null |
| 400 | } |
| 401 | }, |
| 402 | { |
| 403 | "created_at": "2021-09-23T18:00:00-06:00", |
| 404 | "updated_at": "2021-09-23T15:00:00-06:00", |
nothing calls this directly
no test coverage detected
searching dependent graphs…