| 1 |
""" |
| 2 |
Generated by generate/generate.py - 2020-08-02 10:03:59.857088 |
| 3 |
""" |
| 4 |
from aiogithubapi.objects.repository.pullrequest import ( |
| 5 |
AIOGitHubAPIRepositoryPullrequest, |
| 6 |
) |
| 7 |
|
| 8 |
from tests.legacy.responses.repository.pullrequest_fixtrue import ( |
| 9 |
pullrequest_fixtrue_response, |
| 10 |
) |
| 11 |
|
| 12 |
|
| 13 |
def test_pullrequest(pullrequest_fixtrue_response): |
| 14 |
obj = AIOGitHubAPIRepositoryPullrequest(pullrequest_fixtrue_response) |
| 15 |
assert obj.url == pullrequest_fixtrue_response["url"] |
| 16 |
assert obj.id == pullrequest_fixtrue_response["id"] |
| 17 |
assert obj.node_id == pullrequest_fixtrue_response["node_id"] |
| 18 |
assert obj.html_url == pullrequest_fixtrue_response["html_url"] |
| 19 |
assert obj.diff_url == pullrequest_fixtrue_response["diff_url"] |
| 20 |
assert obj.patch_url == pullrequest_fixtrue_response["patch_url"] |
| 21 |
assert obj.issue_url == pullrequest_fixtrue_response["issue_url"] |
| 22 |
assert obj.commits_url == pullrequest_fixtrue_response["commits_url"] |
| 23 |
assert obj.review_comments_url == pullrequest_fixtrue_response["review_comments_url"] |
| 24 |
assert obj.review_comment_url == pullrequest_fixtrue_response["review_comment_url"] |
| 25 |
assert obj.comments_url == pullrequest_fixtrue_response["comments_url"] |
| 26 |
assert obj.statuses_url == pullrequest_fixtrue_response["statuses_url"] |
| 27 |
assert obj.number == pullrequest_fixtrue_response["number"] |
| 28 |
assert obj.state == pullrequest_fixtrue_response["state"] |
| 29 |
assert obj.locked == pullrequest_fixtrue_response["locked"] |
| 30 |
assert obj.title == pullrequest_fixtrue_response["title"] |
| 31 |
assert obj.user.login == pullrequest_fixtrue_response["user"]["login"] |
| 32 |
assert obj.user.id == pullrequest_fixtrue_response["user"]["id"] |
| 33 |
assert obj.user.node_id == pullrequest_fixtrue_response["user"]["node_id"] |
| 34 |
assert obj.user.avatar_url == pullrequest_fixtrue_response["user"]["avatar_url"] |
| 35 |
assert obj.user.gravatar_id == pullrequest_fixtrue_response["user"]["gravatar_id"] |
| 36 |
assert obj.user.url == pullrequest_fixtrue_response["user"]["url"] |
| 37 |
assert obj.user.html_url == pullrequest_fixtrue_response["user"]["html_url"] |
| 38 |
assert obj.user.followers_url == pullrequest_fixtrue_response["user"]["followers_url"] |
| 39 |
assert obj.user.following_url == pullrequest_fixtrue_response["user"]["following_url"] |
| 40 |
assert obj.user.gists_url == pullrequest_fixtrue_response["user"]["gists_url"] |
| 41 |
assert obj.user.starred_url == pullrequest_fixtrue_response["user"]["starred_url"] |
| 42 |
assert obj.user.subscriptions_url == pullrequest_fixtrue_response["user"]["subscriptions_url"] |
| 43 |
assert obj.user.organizations_url == pullrequest_fixtrue_response["user"]["organizations_url"] |
| 44 |
assert obj.user.repos_url == pullrequest_fixtrue_response["user"]["repos_url"] |
| 45 |
assert obj.user.events_url == pullrequest_fixtrue_response["user"]["events_url"] |
| 46 |
assert ( |
| 47 |
obj.user.received_events_url == pullrequest_fixtrue_response["user"]["received_events_url"] |
| 48 |
) |
| 49 |
assert obj.user.type == pullrequest_fixtrue_response["user"]["type"] |
| 50 |
assert obj.user.site_admin == pullrequest_fixtrue_response["user"]["site_admin"] |
| 51 |
assert obj.body == pullrequest_fixtrue_response["body"] |
| 52 |
assert obj.labels[0].id == pullrequest_fixtrue_response["labels"][0]["id"] |
| 53 |
assert obj.labels[0].node_id == pullrequest_fixtrue_response["labels"][0]["node_id"] |
| 54 |
assert obj.labels[0].url == pullrequest_fixtrue_response["labels"][0]["url"] |
| 55 |
assert obj.labels[0].name == pullrequest_fixtrue_response["labels"][0]["name"] |
| 56 |
assert obj.labels[0].description == pullrequest_fixtrue_response["labels"][0]["description"] |
| 57 |
assert obj.labels[0].color == pullrequest_fixtrue_response["labels"][0]["color"] |
| 58 |
assert obj.labels[0].default == pullrequest_fixtrue_response["labels"][0]["default"] |
| 59 |
assert obj.milestone.url == pullrequest_fixtrue_response["milestone"]["url"] |
| 60 |
assert obj.milestone.html_url == pullrequest_fixtrue_response["milestone"]["html_url"] |
| 61 |
assert obj.milestone.labels_url == pullrequest_fixtrue_response["milestone"]["labels_url"] |
| 62 |
assert obj.milestone.id == pullrequest_fixtrue_response["milestone"]["id"] |
| 63 |
assert obj.milestone.node_id == pullrequest_fixtrue_response["milestone"]["node_id"] |
| 64 |
assert obj.milestone.number == pullrequest_fixtrue_response["milestone"]["number"] |
| 65 |
assert obj.milestone.state == pullrequest_fixtrue_response["milestone"]["state"] |
| 66 |
assert obj.milestone.title == pullrequest_fixtrue_response["milestone"]["title"] |
| 67 |
assert obj.milestone.description == pullrequest_fixtrue_response["milestone"]["description"] |
| 68 |
assert ( |
| 69 |
obj.milestone.creator.login == pullrequest_fixtrue_response["milestone"]["creator"]["login"] |
| 70 |
) |
| 71 |
assert obj.milestone.creator.id == pullrequest_fixtrue_response["milestone"]["creator"]["id"] |
| 72 |
assert ( |
| 73 |
obj.milestone.creator.node_id |
| 74 |
== pullrequest_fixtrue_response["milestone"]["creator"]["node_id"] |
| 75 |
) |
| 76 |
assert ( |
| 77 |
obj.milestone.creator.avatar_url |
| 78 |
== pullrequest_fixtrue_response["milestone"]["creator"]["avatar_url"] |
| 79 |
) |
| 80 |
assert ( |
| 81 |
obj.milestone.creator.gravatar_id |
| 82 |
== pullrequest_fixtrue_response["milestone"]["creator"]["gravatar_id"] |
| 83 |
) |
| 84 |
assert obj.milestone.creator.url == pullrequest_fixtrue_response["milestone"]["creator"]["url"] |
| 85 |
assert ( |
| 86 |
obj.milestone.creator.html_url |
| 87 |
== pullrequest_fixtrue_response["milestone"]["creator"]["html_url"] |
| 88 |
) |
| 89 |
assert ( |
| 90 |
obj.milestone.creator.followers_url |
| 91 |
== pullrequest_fixtrue_response["milestone"]["creator"]["followers_url"] |
| 92 |
) |
| 93 |
assert ( |
| 94 |
obj.milestone.creator.following_url |
| 95 |
== pullrequest_fixtrue_response["milestone"]["creator"]["following_url"] |
| 96 |
) |
| 97 |
assert ( |
| 98 |
obj.milestone.creator.gists_url |
| 99 |
== pullrequest_fixtrue_response["milestone"]["creator"]["gists_url"] |
| 100 |
) |
| 101 |
assert ( |
| 102 |
obj.milestone.creator.starred_url |
| 103 |
== pullrequest_fixtrue_response["milestone"]["creator"]["starred_url"] |
| 104 |
) |
| 105 |
assert ( |
| 106 |
obj.milestone.creator.subscriptions_url |
| 107 |
== pullrequest_fixtrue_response["milestone"]["creator"]["subscriptions_url"] |
| 108 |
) |
| 109 |
assert ( |
| 110 |
obj.milestone.creator.organizations_url |
| 111 |
== pullrequest_fixtrue_response["milestone"]["creator"]["organizations_url"] |
| 112 |
) |
| 113 |
assert ( |
| 114 |
obj.milestone.creator.repos_url |
| 115 |
== pullrequest_fixtrue_response["milestone"]["creator"]["repos_url"] |
| 116 |
) |
| 117 |
assert ( |
| 118 |
obj.milestone.creator.events_url |
| 119 |
== pullrequest_fixtrue_response["milestone"]["creator"]["events_url"] |
| 120 |
) |
| 121 |
assert ( |
| 122 |
obj.milestone.creator.received_events_url |
| 123 |
== pullrequest_fixtrue_response["milestone"]["creator"]["received_events_url"] |
| 124 |
) |
| 125 |
assert ( |
| 126 |
obj.milestone.creator.type == pullrequest_fixtrue_response["milestone"]["creator"]["type"] |
| 127 |
) |
| 128 |
assert ( |
| 129 |
obj.milestone.creator.site_admin |
| 130 |
== pullrequest_fixtrue_response["milestone"]["creator"]["site_admin"] |
| 131 |
) |
| 132 |
assert obj.milestone.open_issues == pullrequest_fixtrue_response["milestone"]["open_issues"] |
| 133 |
assert obj.milestone.closed_issues == pullrequest_fixtrue_response["milestone"]["closed_issues"] |
| 134 |
assert obj.milestone.created_at == pullrequest_fixtrue_response["milestone"]["created_at"] |
| 135 |
assert obj.milestone.updated_at == pullrequest_fixtrue_response["milestone"]["updated_at"] |
| 136 |
assert obj.milestone.closed_at == pullrequest_fixtrue_response["milestone"]["closed_at"] |
| 137 |
assert obj.milestone.due_on == pullrequest_fixtrue_response["milestone"]["due_on"] |
| 138 |
assert obj.active_lock_reason == pullrequest_fixtrue_response["active_lock_reason"] |
| 139 |
assert obj.created_at == pullrequest_fixtrue_response["created_at"] |
| 140 |
assert obj.updated_at == pullrequest_fixtrue_response["updated_at"] |
| 141 |
assert obj.closed_at == pullrequest_fixtrue_response["closed_at"] |
| 142 |
assert obj.merged_at == pullrequest_fixtrue_response["merged_at"] |
| 143 |
assert obj.merge_commit_sha == pullrequest_fixtrue_response["merge_commit_sha"] |
| 144 |
assert obj.assignee.login == pullrequest_fixtrue_response["assignee"]["login"] |
| 145 |
assert obj.assignee.id == pullrequest_fixtrue_response["assignee"]["id"] |
| 146 |
assert obj.assignee.node_id == pullrequest_fixtrue_response["assignee"]["node_id"] |
| 147 |
assert obj.assignee.avatar_url == pullrequest_fixtrue_response["assignee"]["avatar_url"] |
| 148 |
assert obj.assignee.gravatar_id == pullrequest_fixtrue_response["assignee"]["gravatar_id"] |
| 149 |
assert obj.assignee.url == pullrequest_fixtrue_response["assignee"]["url"] |
| 150 |
assert obj.assignee.html_url == pullrequest_fixtrue_response["assignee"]["html_url"] |
| 151 |
assert obj.assignee.followers_url == pullrequest_fixtrue_response["assignee"]["followers_url"] |
| 152 |
assert obj.assignee.following_url == pullrequest_fixtrue_response["assignee"]["following_url"] |
| 153 |
assert obj.assignee.gists_url == pullrequest_fixtrue_response["assignee"]["gists_url"] |
| 154 |
assert obj.assignee.starred_url == pullrequest_fixtrue_response["assignee"]["starred_url"] |
| 155 |
assert ( |
| 156 |
obj.assignee.subscriptions_url |
| 157 |
== pullrequest_fixtrue_response["assignee"]["subscriptions_url"] |
| 158 |
) |
| 159 |
assert ( |
| 160 |
obj.assignee.organizations_url |
| 161 |
== pullrequest_fixtrue_response["assignee"]["organizations_url"] |
| 162 |
) |
| 163 |
assert obj.assignee.repos_url == pullrequest_fixtrue_response["assignee"]["repos_url"] |
| 164 |
assert obj.assignee.events_url == pullrequest_fixtrue_response["assignee"]["events_url"] |
| 165 |
assert ( |
| 166 |
obj.assignee.received_events_url |
| 167 |
== pullrequest_fixtrue_response["assignee"]["received_events_url"] |
| 168 |
) |
| 169 |
assert obj.assignee.type == pullrequest_fixtrue_response["assignee"]["type"] |
| 170 |
assert obj.assignee.site_admin == pullrequest_fixtrue_response["assignee"]["site_admin"] |
| 171 |
assert obj.assignees[0].login == pullrequest_fixtrue_response["assignees"][0]["login"] |
| 172 |
assert obj.assignees[0].id == pullrequest_fixtrue_response["assignees"][0]["id"] |
| 173 |
assert obj.assignees[0].node_id == pullrequest_fixtrue_response["assignees"][0]["node_id"] |
| 174 |
assert obj.assignees[0].avatar_url == pullrequest_fixtrue_response["assignees"][0]["avatar_url"] |
| 175 |
assert ( |
| 176 |
obj.assignees[0].gravatar_id == pullrequest_fixtrue_response["assignees"][0]["gravatar_id"] |
| 177 |
) |
| 178 |
assert obj.assignees[0].url == pullrequest_fixtrue_response["assignees"][0]["url"] |
| 179 |
assert obj.assignees[0].html_url == pullrequest_fixtrue_response["assignees"][0]["html_url"] |
| 180 |
assert ( |
| 181 |
obj.assignees[0].followers_url |
| 182 |
== pullrequest_fixtrue_response["assignees"][0]["followers_url"] |
| 183 |
) |
| 184 |
assert ( |
| 185 |
obj.assignees[0].following_url |
| 186 |
== pullrequest_fixtrue_response["assignees"][0]["following_url"] |
| 187 |
) |
| 188 |
assert obj.assignees[0].gists_url == pullrequest_fixtrue_response["assignees"][0]["gists_url"] |
| 189 |
assert ( |
| 190 |
obj.assignees[0].starred_url == pullrequest_fixtrue_response["assignees"][0]["starred_url"] |
| 191 |
) |
| 192 |
assert ( |
| 193 |
obj.assignees[0].subscriptions_url |
| 194 |
== pullrequest_fixtrue_response["assignees"][0]["subscriptions_url"] |
| 195 |
) |
| 196 |
assert ( |
| 197 |
obj.assignees[0].organizations_url |
| 198 |
== pullrequest_fixtrue_response["assignees"][0]["organizations_url"] |
| 199 |
) |
| 200 |
assert obj.assignees[0].repos_url == pullrequest_fixtrue_response["assignees"][0]["repos_url"] |
| 201 |
assert obj.assignees[0].events_url == pullrequest_fixtrue_response["assignees"][0]["events_url"] |
| 202 |
assert ( |
| 203 |
obj.assignees[0].received_events_url |
| 204 |
== pullrequest_fixtrue_response["assignees"][0]["received_events_url"] |
| 205 |
) |
| 206 |
assert obj.assignees[0].type == pullrequest_fixtrue_response["assignees"][0]["type"] |
| 207 |
assert obj.assignees[0].site_admin == pullrequest_fixtrue_response["assignees"][0]["site_admin"] |
| 208 |
assert ( |
| 209 |
obj.requested_reviewers[0].login |
| 210 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["login"] |
| 211 |
) |
| 212 |
assert ( |
| 213 |
obj.requested_reviewers[0].id |
| 214 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["id"] |
| 215 |
) |
| 216 |
assert ( |
| 217 |
obj.requested_reviewers[0].node_id |
| 218 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["node_id"] |
| 219 |
) |
| 220 |
assert ( |
| 221 |
obj.requested_reviewers[0].avatar_url |
| 222 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["avatar_url"] |
| 223 |
) |
| 224 |
assert ( |
| 225 |
obj.requested_reviewers[0].gravatar_id |
| 226 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["gravatar_id"] |
| 227 |
) |
| 228 |
assert ( |
| 229 |
obj.requested_reviewers[0].url |
| 230 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["url"] |
| 231 |
) |
| 232 |
assert ( |
| 233 |
obj.requested_reviewers[0].html_url |
| 234 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["html_url"] |
| 235 |
) |
| 236 |
assert ( |
| 237 |
obj.requested_reviewers[0].followers_url |
| 238 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["followers_url"] |
| 239 |
) |
| 240 |
assert ( |
| 241 |
obj.requested_reviewers[0].following_url |
| 242 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["following_url"] |
| 243 |
) |
| 244 |
assert ( |
| 245 |
obj.requested_reviewers[0].gists_url |
| 246 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["gists_url"] |
| 247 |
) |
| 248 |
assert ( |
| 249 |
obj.requested_reviewers[0].starred_url |
| 250 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["starred_url"] |
| 251 |
) |
| 252 |
assert ( |
| 253 |
obj.requested_reviewers[0].subscriptions_url |
| 254 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["subscriptions_url"] |
| 255 |
) |
| 256 |
assert ( |
| 257 |
obj.requested_reviewers[0].organizations_url |
| 258 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["organizations_url"] |
| 259 |
) |
| 260 |
assert ( |
| 261 |
obj.requested_reviewers[0].repos_url |
| 262 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["repos_url"] |
| 263 |
) |
| 264 |
assert ( |
| 265 |
obj.requested_reviewers[0].events_url |
| 266 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["events_url"] |
| 267 |
) |
| 268 |
assert ( |
| 269 |
obj.requested_reviewers[0].received_events_url |
| 270 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["received_events_url"] |
| 271 |
) |
| 272 |
assert ( |
| 273 |
obj.requested_reviewers[0].type |
| 274 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["type"] |
| 275 |
) |
| 276 |
assert ( |
| 277 |
obj.requested_reviewers[0].site_admin |
| 278 |
== pullrequest_fixtrue_response["requested_reviewers"][0]["site_admin"] |
| 279 |
) |
| 280 |
assert obj.requested_teams[0].id == pullrequest_fixtrue_response["requested_teams"][0]["id"] |
| 281 |
assert ( |
| 282 |
obj.requested_teams[0].node_id |
| 283 |
== pullrequest_fixtrue_response["requested_teams"][0]["node_id"] |
| 284 |
) |
| 285 |
assert obj.requested_teams[0].url == pullrequest_fixtrue_response["requested_teams"][0]["url"] |
| 286 |
assert ( |
| 287 |
obj.requested_teams[0].html_url |
| 288 |
== pullrequest_fixtrue_response["requested_teams"][0]["html_url"] |
| 289 |
) |
| 290 |
assert obj.requested_teams[0].name == pullrequest_fixtrue_response["requested_teams"][0]["name"] |
| 291 |
assert obj.requested_teams[0].slug == pullrequest_fixtrue_response["requested_teams"][0]["slug"] |
| 292 |
assert ( |
| 293 |
obj.requested_teams[0].description |
| 294 |
== pullrequest_fixtrue_response["requested_teams"][0]["description"] |
| 295 |
) |
| 296 |
assert ( |
| 297 |
obj.requested_teams[0].privacy |
| 298 |
== pullrequest_fixtrue_response["requested_teams"][0]["privacy"] |
| 299 |
) |
| 300 |
assert ( |
| 301 |
obj.requested_teams[0].permission |
| 302 |
== pullrequest_fixtrue_response["requested_teams"][0]["permission"] |
| 303 |
) |
| 304 |
assert ( |
| 305 |
obj.requested_teams[0].members_url |
| 306 |
== pullrequest_fixtrue_response["requested_teams"][0]["members_url"] |
| 307 |
) |
| 308 |
assert ( |
| 309 |
obj.requested_teams[0].repositories_url |
| 310 |
== pullrequest_fixtrue_response["requested_teams"][0]["repositories_url"] |
| 311 |
) |
| 312 |
assert ( |
| 313 |
obj.requested_teams[0].parent |
| 314 |
== pullrequest_fixtrue_response["requested_teams"][0]["parent"] |
| 315 |
) |
| 316 |
assert obj.head.label == pullrequest_fixtrue_response["head"]["label"] |
| 317 |
assert obj.head.ref == pullrequest_fixtrue_response["head"]["ref"] |
| 318 |
assert obj.head.sha == pullrequest_fixtrue_response["head"]["sha"] |
| 319 |
assert obj.head.user.login == pullrequest_fixtrue_response["head"]["user"]["login"] |
| 320 |
assert obj.head.user.id == pullrequest_fixtrue_response["head"]["user"]["id"] |
| 321 |
assert obj.head.user.node_id == pullrequest_fixtrue_response["head"]["user"]["node_id"] |
| 322 |
assert obj.head.user.avatar_url == pullrequest_fixtrue_response["head"]["user"]["avatar_url"] |
| 323 |
assert obj.head.user.gravatar_id == pullrequest_fixtrue_response["head"]["user"]["gravatar_id"] |
| 324 |
assert obj.head.user.url == pullrequest_fixtrue_response["head"]["user"]["url"] |
| 325 |
assert obj.head.user.html_url == pullrequest_fixtrue_response["head"]["user"]["html_url"] |
| 326 |
assert ( |
| 327 |
obj.head.user.followers_url == pullrequest_fixtrue_response["head"]["user"]["followers_url"] |
| 328 |
) |
| 329 |
assert ( |
| 330 |
obj.head.user.following_url == pullrequest_fixtrue_response["head"]["user"]["following_url"] |
| 331 |
) |
| 332 |
assert obj.head.user.gists_url == pullrequest_fixtrue_response["head"]["user"]["gists_url"] |
| 333 |
assert obj.head.user.starred_url == pullrequest_fixtrue_response["head"]["user"]["starred_url"] |
| 334 |
assert ( |
| 335 |
obj.head.user.subscriptions_url |
| 336 |
== pullrequest_fixtrue_response["head"]["user"]["subscriptions_url"] |
| 337 |
) |
| 338 |
assert ( |
| 339 |
obj.head.user.organizations_url |
| 340 |
== pullrequest_fixtrue_response["head"]["user"]["organizations_url"] |
| 341 |
) |
| 342 |
assert obj.head.user.repos_url == pullrequest_fixtrue_response["head"]["user"]["repos_url"] |
| 343 |
assert obj.head.user.events_url == pullrequest_fixtrue_response["head"]["user"]["events_url"] |
| 344 |
assert ( |
| 345 |
obj.head.user.received_events_url |
| 346 |
== pullrequest_fixtrue_response["head"]["user"]["received_events_url"] |
| 347 |
) |
| 348 |
assert obj.head.user.type == pullrequest_fixtrue_response["head"]["user"]["type"] |
| 349 |
assert obj.head.user.site_admin == pullrequest_fixtrue_response["head"]["user"]["site_admin"] |
| 350 |
assert obj.head.repo.id == pullrequest_fixtrue_response["head"]["repo"]["id"] |
| 351 |
assert obj.head.repo.node_id == pullrequest_fixtrue_response["head"]["repo"]["node_id"] |
| 352 |
assert obj.head.repo.name == pullrequest_fixtrue_response["head"]["repo"]["name"] |
| 353 |
assert obj.head.repo.full_name == pullrequest_fixtrue_response["head"]["repo"]["full_name"] |
| 354 |
assert ( |
| 355 |
obj.head.repo.owner.login == pullrequest_fixtrue_response["head"]["repo"]["owner"]["login"] |
| 356 |
) |
| 357 |
assert obj.head.repo.owner.id == pullrequest_fixtrue_response["head"]["repo"]["owner"]["id"] |
| 358 |
assert ( |
| 359 |
obj.head.repo.owner.node_id |
| 360 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["node_id"] |
| 361 |
) |
| 362 |
assert ( |
| 363 |
obj.head.repo.owner.avatar_url |
| 364 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["avatar_url"] |
| 365 |
) |
| 366 |
assert ( |
| 367 |
obj.head.repo.owner.gravatar_id |
| 368 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["gravatar_id"] |
| 369 |
) |
| 370 |
assert obj.head.repo.owner.url == pullrequest_fixtrue_response["head"]["repo"]["owner"]["url"] |
| 371 |
assert ( |
| 372 |
obj.head.repo.owner.html_url |
| 373 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["html_url"] |
| 374 |
) |
| 375 |
assert ( |
| 376 |
obj.head.repo.owner.followers_url |
| 377 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["followers_url"] |
| 378 |
) |
| 379 |
assert ( |
| 380 |
obj.head.repo.owner.following_url |
| 381 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["following_url"] |
| 382 |
) |
| 383 |
assert ( |
| 384 |
obj.head.repo.owner.gists_url |
| 385 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["gists_url"] |
| 386 |
) |
| 387 |
assert ( |
| 388 |
obj.head.repo.owner.starred_url |
| 389 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["starred_url"] |
| 390 |
) |
| 391 |
assert ( |
| 392 |
obj.head.repo.owner.subscriptions_url |
| 393 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["subscriptions_url"] |
| 394 |
) |
| 395 |
assert ( |
| 396 |
obj.head.repo.owner.organizations_url |
| 397 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["organizations_url"] |
| 398 |
) |
| 399 |
assert ( |
| 400 |
obj.head.repo.owner.repos_url |
| 401 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["repos_url"] |
| 402 |
) |
| 403 |
assert ( |
| 404 |
obj.head.repo.owner.events_url |
| 405 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["events_url"] |
| 406 |
) |
| 407 |
assert ( |
| 408 |
obj.head.repo.owner.received_events_url |
| 409 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["received_events_url"] |
| 410 |
) |
| 411 |
assert obj.head.repo.owner.type == pullrequest_fixtrue_response["head"]["repo"]["owner"]["type"] |
| 412 |
assert ( |
| 413 |
obj.head.repo.owner.site_admin |
| 414 |
== pullrequest_fixtrue_response["head"]["repo"]["owner"]["site_admin"] |
| 415 |
) |
| 416 |
assert obj.head.repo.private == pullrequest_fixtrue_response["head"]["repo"]["private"] |
| 417 |
assert obj.head.repo.html_url == pullrequest_fixtrue_response["head"]["repo"]["html_url"] |
| 418 |
assert obj.head.repo.description == pullrequest_fixtrue_response["head"]["repo"]["description"] |
| 419 |
assert obj.head.repo.fork == pullrequest_fixtrue_response["head"]["repo"]["fork"] |
| 420 |
assert obj.head.repo.url == pullrequest_fixtrue_response["head"]["repo"]["url"] |
| 421 |
assert obj.head.repo.archive_url == pullrequest_fixtrue_response["head"]["repo"]["archive_url"] |
| 422 |
assert ( |
| 423 |
obj.head.repo.assignees_url == pullrequest_fixtrue_response["head"]["repo"]["assignees_url"] |
| 424 |
) |
| 425 |
assert obj.head.repo.blobs_url == pullrequest_fixtrue_response["head"]["repo"]["blobs_url"] |
| 426 |
assert ( |
| 427 |
obj.head.repo.branches_url == pullrequest_fixtrue_response["head"]["repo"]["branches_url"] |
| 428 |
) |
| 429 |
assert ( |
| 430 |
obj.head.repo.collaborators_url |
| 431 |
== pullrequest_fixtrue_response["head"]["repo"]["collaborators_url"] |
| 432 |
) |
| 433 |
assert ( |
| 434 |
obj.head.repo.comments_url == pullrequest_fixtrue_response["head"]["repo"]["comments_url"] |
| 435 |
) |
| 436 |
assert obj.head.repo.commits_url == pullrequest_fixtrue_response["head"]["repo"]["commits_url"] |
| 437 |
assert obj.head.repo.compare_url == pullrequest_fixtrue_response["head"]["repo"]["compare_url"] |
| 438 |
assert ( |
| 439 |
obj.head.repo.contents_url == pullrequest_fixtrue_response["head"]["repo"]["contents_url"] |
| 440 |
) |
| 441 |
assert ( |
| 442 |
obj.head.repo.contributors_url |
| 443 |
== pullrequest_fixtrue_response["head"]["repo"]["contributors_url"] |
| 444 |
) |
| 445 |
assert ( |
| 446 |
obj.head.repo.deployments_url |
| 447 |
== pullrequest_fixtrue_response["head"]["repo"]["deployments_url"] |
| 448 |
) |
| 449 |
assert ( |
| 450 |
obj.head.repo.downloads_url == pullrequest_fixtrue_response["head"]["repo"]["downloads_url"] |
| 451 |
) |
| 452 |
assert obj.head.repo.events_url == pullrequest_fixtrue_response["head"]["repo"]["events_url"] |
| 453 |
assert obj.head.repo.forks_url == pullrequest_fixtrue_response["head"]["repo"]["forks_url"] |
| 454 |
assert ( |
| 455 |
obj.head.repo.git_commits_url |
| 456 |
== pullrequest_fixtrue_response["head"]["repo"]["git_commits_url"] |
| 457 |
) |
| 458 |
assert ( |
| 459 |
obj.head.repo.git_refs_url == pullrequest_fixtrue_response["head"]["repo"]["git_refs_url"] |
| 460 |
) |
| 461 |
assert ( |
| 462 |
obj.head.repo.git_tags_url == pullrequest_fixtrue_response["head"]["repo"]["git_tags_url"] |
| 463 |
) |
| 464 |
assert obj.head.repo.git_url == pullrequest_fixtrue_response["head"]["repo"]["git_url"] |
| 465 |
assert ( |
| 466 |
obj.head.repo.issue_comment_url |
| 467 |
== pullrequest_fixtrue_response["head"]["repo"]["issue_comment_url"] |
| 468 |
) |
| 469 |
assert ( |
| 470 |
obj.head.repo.issue_events_url |
| 471 |
== pullrequest_fixtrue_response["head"]["repo"]["issue_events_url"] |
| 472 |
) |
| 473 |
assert obj.head.repo.issues_url == pullrequest_fixtrue_response["head"]["repo"]["issues_url"] |
| 474 |
assert obj.head.repo.keys_url == pullrequest_fixtrue_response["head"]["repo"]["keys_url"] |
| 475 |
assert obj.head.repo.labels_url == pullrequest_fixtrue_response["head"]["repo"]["labels_url"] |
| 476 |
assert ( |
| 477 |
obj.head.repo.languages_url == pullrequest_fixtrue_response["head"]["repo"]["languages_url"] |
| 478 |
) |
| 479 |
assert obj.head.repo.merges_url == pullrequest_fixtrue_response["head"]["repo"]["merges_url"] |
| 480 |
assert ( |
| 481 |
obj.head.repo.milestones_url |
| 482 |
== pullrequest_fixtrue_response["head"]["repo"]["milestones_url"] |
| 483 |
) |
| 484 |
assert ( |
| 485 |
obj.head.repo.notifications_url |
| 486 |
== pullrequest_fixtrue_response["head"]["repo"]["notifications_url"] |
| 487 |
) |
| 488 |
assert obj.head.repo.pulls_url == pullrequest_fixtrue_response["head"]["repo"]["pulls_url"] |
| 489 |
assert ( |
| 490 |
obj.head.repo.releases_url == pullrequest_fixtrue_response["head"]["repo"]["releases_url"] |
| 491 |
) |
| 492 |
assert obj.head.repo.ssh_url == pullrequest_fixtrue_response["head"]["repo"]["ssh_url"] |
| 493 |
assert ( |
| 494 |
obj.head.repo.stargazers_url |
| 495 |
== pullrequest_fixtrue_response["head"]["repo"]["stargazers_url"] |
| 496 |
) |
| 497 |
assert ( |
| 498 |
obj.head.repo.statuses_url == pullrequest_fixtrue_response["head"]["repo"]["statuses_url"] |
| 499 |
) |
| 500 |
assert ( |
| 501 |
obj.head.repo.subscribers_url |
| 502 |
== pullrequest_fixtrue_response["head"]["repo"]["subscribers_url"] |
| 503 |
) |
| 504 |
assert ( |
| 505 |
obj.head.repo.subscription_url |
| 506 |
== pullrequest_fixtrue_response["head"]["repo"]["subscription_url"] |
| 507 |
) |
| 508 |
assert obj.head.repo.tags_url == pullrequest_fixtrue_response["head"]["repo"]["tags_url"] |
| 509 |
assert obj.head.repo.teams_url == pullrequest_fixtrue_response["head"]["repo"]["teams_url"] |
| 510 |
assert obj.head.repo.trees_url == pullrequest_fixtrue_response["head"]["repo"]["trees_url"] |
| 511 |
assert obj.head.repo.clone_url == pullrequest_fixtrue_response["head"]["repo"]["clone_url"] |
| 512 |
assert obj.head.repo.mirror_url == pullrequest_fixtrue_response["head"]["repo"]["mirror_url"] |
| 513 |
assert obj.head.repo.hooks_url == pullrequest_fixtrue_response["head"]["repo"]["hooks_url"] |
| 514 |
assert obj.head.repo.svn_url == pullrequest_fixtrue_response["head"]["repo"]["svn_url"] |
| 515 |
assert obj.head.repo.homepage == pullrequest_fixtrue_response["head"]["repo"]["homepage"] |
| 516 |
assert obj.head.repo.language == pullrequest_fixtrue_response["head"]["repo"]["language"] |
| 517 |
assert obj.head.repo.forks_count == pullrequest_fixtrue_response["head"]["repo"]["forks_count"] |
| 518 |
assert ( |
| 519 |
obj.head.repo.stargazers_count |
| 520 |
== pullrequest_fixtrue_response["head"]["repo"]["stargazers_count"] |
| 521 |
) |
| 522 |
assert ( |
| 523 |
obj.head.repo.watchers_count |
| 524 |
== pullrequest_fixtrue_response["head"]["repo"]["watchers_count"] |
| 525 |
) |
| 526 |
assert obj.head.repo.size == pullrequest_fixtrue_response["head"]["repo"]["size"] |
| 527 |
assert ( |
| 528 |
obj.head.repo.default_branch |
| 529 |
== pullrequest_fixtrue_response["head"]["repo"]["default_branch"] |
| 530 |
) |
| 531 |
assert ( |
| 532 |
obj.head.repo.open_issues_count |
| 533 |
== pullrequest_fixtrue_response["head"]["repo"]["open_issues_count"] |
| 534 |
) |
| 535 |
assert obj.head.repo.is_template == pullrequest_fixtrue_response["head"]["repo"]["is_template"] |
| 536 |
assert obj.head.repo.topics[0] == pullrequest_fixtrue_response["head"]["repo"]["topics"][0] |
| 537 |
assert obj.head.repo.has_issues == pullrequest_fixtrue_response["head"]["repo"]["has_issues"] |
| 538 |
assert ( |
| 539 |
obj.head.repo.has_projects == pullrequest_fixtrue_response["head"]["repo"]["has_projects"] |
| 540 |
) |
| 541 |
assert obj.head.repo.has_wiki == pullrequest_fixtrue_response["head"]["repo"]["has_wiki"] |
| 542 |
assert obj.head.repo.has_pages == pullrequest_fixtrue_response["head"]["repo"]["has_pages"] |
| 543 |
assert ( |
| 544 |
obj.head.repo.has_downloads == pullrequest_fixtrue_response["head"]["repo"]["has_downloads"] |
| 545 |
) |
| 546 |
assert obj.head.repo.archived == pullrequest_fixtrue_response["head"]["repo"]["archived"] |
| 547 |
assert obj.head.repo.disabled == pullrequest_fixtrue_response["head"]["repo"]["disabled"] |
| 548 |
assert obj.head.repo.visibility == pullrequest_fixtrue_response["head"]["repo"]["visibility"] |
| 549 |
assert obj.head.repo.pushed_at == pullrequest_fixtrue_response["head"]["repo"]["pushed_at"] |
| 550 |
assert obj.head.repo.created_at == pullrequest_fixtrue_response["head"]["repo"]["created_at"] |
| 551 |
assert obj.head.repo.updated_at == pullrequest_fixtrue_response["head"]["repo"]["updated_at"] |
| 552 |
assert ( |
| 553 |
obj.head.repo.permissions.admin |
| 554 |
== pullrequest_fixtrue_response["head"]["repo"]["permissions"]["admin"] |
| 555 |
) |
| 556 |
assert ( |
| 557 |
obj.head.repo.permissions.push |
| 558 |
== pullrequest_fixtrue_response["head"]["repo"]["permissions"]["push"] |
| 559 |
) |
| 560 |
assert ( |
| 561 |
obj.head.repo.permissions.pull |
| 562 |
== pullrequest_fixtrue_response["head"]["repo"]["permissions"]["pull"] |
| 563 |
) |
| 564 |
assert ( |
| 565 |
obj.head.repo.allow_rebase_merge |
| 566 |
== pullrequest_fixtrue_response["head"]["repo"]["allow_rebase_merge"] |
| 567 |
) |
| 568 |
assert ( |
| 569 |
obj.head.repo.template_repository |
| 570 |
== pullrequest_fixtrue_response["head"]["repo"]["template_repository"] |
| 571 |
) |
| 572 |
assert ( |
| 573 |
obj.head.repo.temp_clone_token |
| 574 |
== pullrequest_fixtrue_response["head"]["repo"]["temp_clone_token"] |
| 575 |
) |
| 576 |
assert ( |
| 577 |
obj.head.repo.allow_squash_merge |
| 578 |
== pullrequest_fixtrue_response["head"]["repo"]["allow_squash_merge"] |
| 579 |
) |
| 580 |
assert ( |
| 581 |
obj.head.repo.delete_branch_on_merge |
| 582 |
== pullrequest_fixtrue_response["head"]["repo"]["delete_branch_on_merge"] |
| 583 |
) |
| 584 |
assert ( |
| 585 |
obj.head.repo.allow_merge_commit |
| 586 |
== pullrequest_fixtrue_response["head"]["repo"]["allow_merge_commit"] |
| 587 |
) |
| 588 |
assert ( |
| 589 |
obj.head.repo.subscribers_count |
| 590 |
== pullrequest_fixtrue_response["head"]["repo"]["subscribers_count"] |
| 591 |
) |
| 592 |
assert ( |
| 593 |
obj.head.repo.network_count == pullrequest_fixtrue_response["head"]["repo"]["network_count"] |
| 594 |
) |
| 595 |
assert obj.base.label == pullrequest_fixtrue_response["base"]["label"] |
| 596 |
assert obj.base.ref == pullrequest_fixtrue_response["base"]["ref"] |
| 597 |
assert obj.base.sha == pullrequest_fixtrue_response["base"]["sha"] |
| 598 |
assert obj.base.user.login == pullrequest_fixtrue_response["base"]["user"]["login"] |
| 599 |
assert obj.base.user.id == pullrequest_fixtrue_response["base"]["user"]["id"] |
| 600 |
assert obj.base.user.node_id == pullrequest_fixtrue_response["base"]["user"]["node_id"] |
| 601 |
assert obj.base.user.avatar_url == pullrequest_fixtrue_response["base"]["user"]["avatar_url"] |
| 602 |
assert obj.base.user.gravatar_id == pullrequest_fixtrue_response["base"]["user"]["gravatar_id"] |
| 603 |
assert obj.base.user.url == pullrequest_fixtrue_response["base"]["user"]["url"] |
| 604 |
assert obj.base.user.html_url == pullrequest_fixtrue_response["base"]["user"]["html_url"] |
| 605 |
assert ( |
| 606 |
obj.base.user.followers_url == pullrequest_fixtrue_response["base"]["user"]["followers_url"] |
| 607 |
) |
| 608 |
assert ( |
| 609 |
obj.base.user.following_url == pullrequest_fixtrue_response["base"]["user"]["following_url"] |
| 610 |
) |
| 611 |
assert obj.base.user.gists_url == pullrequest_fixtrue_response["base"]["user"]["gists_url"] |
| 612 |
assert obj.base.user.starred_url == pullrequest_fixtrue_response["base"]["user"]["starred_url"] |
| 613 |
assert ( |
| 614 |
obj.base.user.subscriptions_url |
| 615 |
== pullrequest_fixtrue_response["base"]["user"]["subscriptions_url"] |
| 616 |
) |
| 617 |
assert ( |
| 618 |
obj.base.user.organizations_url |
| 619 |
== pullrequest_fixtrue_response["base"]["user"]["organizations_url"] |
| 620 |
) |
| 621 |
assert obj.base.user.repos_url == pullrequest_fixtrue_response["base"]["user"]["repos_url"] |
| 622 |
assert obj.base.user.events_url == pullrequest_fixtrue_response["base"]["user"]["events_url"] |
| 623 |
assert ( |
| 624 |
obj.base.user.received_events_url |
| 625 |
== pullrequest_fixtrue_response["base"]["user"]["received_events_url"] |
| 626 |
) |
| 627 |
assert obj.base.user.type == pullrequest_fixtrue_response["base"]["user"]["type"] |
| 628 |
assert obj.base.user.site_admin == pullrequest_fixtrue_response["base"]["user"]["site_admin"] |
| 629 |
assert obj.base.repo.id == pullrequest_fixtrue_response["base"]["repo"]["id"] |
| 630 |
assert obj.base.repo.node_id == pullrequest_fixtrue_response["base"]["repo"]["node_id"] |
| 631 |
assert obj.base.repo.name == pullrequest_fixtrue_response["base"]["repo"]["name"] |
| 632 |
assert obj.base.repo.full_name == pullrequest_fixtrue_response["base"]["repo"]["full_name"] |
| 633 |
assert ( |
| 634 |
obj.base.repo.owner.login == pullrequest_fixtrue_response["base"]["repo"]["owner"]["login"] |
| 635 |
) |
| 636 |
assert obj.base.repo.owner.id == pullrequest_fixtrue_response["base"]["repo"]["owner"]["id"] |
| 637 |
assert ( |
| 638 |
obj.base.repo.owner.node_id |
| 639 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["node_id"] |
| 640 |
) |
| 641 |
assert ( |
| 642 |
obj.base.repo.owner.avatar_url |
| 643 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["avatar_url"] |
| 644 |
) |
| 645 |
assert ( |
| 646 |
obj.base.repo.owner.gravatar_id |
| 647 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["gravatar_id"] |
| 648 |
) |
| 649 |
assert obj.base.repo.owner.url == pullrequest_fixtrue_response["base"]["repo"]["owner"]["url"] |
| 650 |
assert ( |
| 651 |
obj.base.repo.owner.html_url |
| 652 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["html_url"] |
| 653 |
) |
| 654 |
assert ( |
| 655 |
obj.base.repo.owner.followers_url |
| 656 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["followers_url"] |
| 657 |
) |
| 658 |
assert ( |
| 659 |
obj.base.repo.owner.following_url |
| 660 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["following_url"] |
| 661 |
) |
| 662 |
assert ( |
| 663 |
obj.base.repo.owner.gists_url |
| 664 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["gists_url"] |
| 665 |
) |
| 666 |
assert ( |
| 667 |
obj.base.repo.owner.starred_url |
| 668 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["starred_url"] |
| 669 |
) |
| 670 |
assert ( |
| 671 |
obj.base.repo.owner.subscriptions_url |
| 672 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["subscriptions_url"] |
| 673 |
) |
| 674 |
assert ( |
| 675 |
obj.base.repo.owner.organizations_url |
| 676 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["organizations_url"] |
| 677 |
) |
| 678 |
assert ( |
| 679 |
obj.base.repo.owner.repos_url |
| 680 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["repos_url"] |
| 681 |
) |
| 682 |
assert ( |
| 683 |
obj.base.repo.owner.events_url |
| 684 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["events_url"] |
| 685 |
) |
| 686 |
assert ( |
| 687 |
obj.base.repo.owner.received_events_url |
| 688 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["received_events_url"] |
| 689 |
) |
| 690 |
assert obj.base.repo.owner.type == pullrequest_fixtrue_response["base"]["repo"]["owner"]["type"] |
| 691 |
assert ( |
| 692 |
obj.base.repo.owner.site_admin |
| 693 |
== pullrequest_fixtrue_response["base"]["repo"]["owner"]["site_admin"] |
| 694 |
) |
| 695 |
assert obj.base.repo.private == pullrequest_fixtrue_response["base"]["repo"]["private"] |
| 696 |
assert obj.base.repo.html_url == pullrequest_fixtrue_response["base"]["repo"]["html_url"] |
| 697 |
assert obj.base.repo.description == pullrequest_fixtrue_response["base"]["repo"]["description"] |
| 698 |
assert obj.base.repo.fork == pullrequest_fixtrue_response["base"]["repo"]["fork"] |
| 699 |
assert obj.base.repo.url == pullrequest_fixtrue_response["base"]["repo"]["url"] |
| 700 |
assert obj.base.repo.archive_url == pullrequest_fixtrue_response["base"]["repo"]["archive_url"] |
| 701 |
assert ( |
| 702 |
obj.base.repo.assignees_url == pullrequest_fixtrue_response["base"]["repo"]["assignees_url"] |
| 703 |
) |
| 704 |
assert obj.base.repo.blobs_url == pullrequest_fixtrue_response["base"]["repo"]["blobs_url"] |
| 705 |
assert ( |
| 706 |
obj.base.repo.branches_url == pullrequest_fixtrue_response["base"]["repo"]["branches_url"] |
| 707 |
) |
| 708 |
assert ( |
| 709 |
obj.base.repo.collaborators_url |
| 710 |
== pullrequest_fixtrue_response["base"]["repo"]["collaborators_url"] |
| 711 |
) |
| 712 |
assert ( |
| 713 |
obj.base.repo.comments_url == pullrequest_fixtrue_response["base"]["repo"]["comments_url"] |
| 714 |
) |
| 715 |
assert obj.base.repo.commits_url == pullrequest_fixtrue_response["base"]["repo"]["commits_url"] |
| 716 |
assert obj.base.repo.compare_url == pullrequest_fixtrue_response["base"]["repo"]["compare_url"] |
| 717 |
assert ( |
| 718 |
obj.base.repo.contents_url == pullrequest_fixtrue_response["base"]["repo"]["contents_url"] |
| 719 |
) |
| 720 |
assert ( |
| 721 |
obj.base.repo.contributors_url |
| 722 |
== pullrequest_fixtrue_response["base"]["repo"]["contributors_url"] |
| 723 |
) |
| 724 |
assert ( |
| 725 |
obj.base.repo.deployments_url |
| 726 |
== pullrequest_fixtrue_response["base"]["repo"]["deployments_url"] |
| 727 |
) |
| 728 |
assert ( |
| 729 |
obj.base.repo.downloads_url == pullrequest_fixtrue_response["base"]["repo"]["downloads_url"] |
| 730 |
) |
| 731 |
assert obj.base.repo.events_url == pullrequest_fixtrue_response["base"]["repo"]["events_url"] |
| 732 |
assert obj.base.repo.forks_url == pullrequest_fixtrue_response["base"]["repo"]["forks_url"] |
| 733 |
assert ( |
| 734 |
obj.base.repo.git_commits_url |
| 735 |
== pullrequest_fixtrue_response["base"]["repo"]["git_commits_url"] |
| 736 |
) |
| 737 |
assert ( |
| 738 |
obj.base.repo.git_refs_url == pullrequest_fixtrue_response["base"]["repo"]["git_refs_url"] |
| 739 |
) |
| 740 |
assert ( |
| 741 |
obj.base.repo.git_tags_url == pullrequest_fixtrue_response["base"]["repo"]["git_tags_url"] |
| 742 |
) |
| 743 |
assert obj.base.repo.git_url == pullrequest_fixtrue_response["base"]["repo"]["git_url"] |
| 744 |
assert ( |
| 745 |
obj.base.repo.issue_comment_url |
| 746 |
== pullrequest_fixtrue_response["base"]["repo"]["issue_comment_url"] |
| 747 |
) |
| 748 |
assert ( |
| 749 |
obj.base.repo.issue_events_url |
| 750 |
== pullrequest_fixtrue_response["base"]["repo"]["issue_events_url"] |
| 751 |
) |
| 752 |
assert obj.base.repo.issues_url == pullrequest_fixtrue_response["base"]["repo"]["issues_url"] |
| 753 |
assert obj.base.repo.keys_url == pullrequest_fixtrue_response["base"]["repo"]["keys_url"] |
| 754 |
assert obj.base.repo.labels_url == pullrequest_fixtrue_response["base"]["repo"]["labels_url"] |
| 755 |
assert ( |
| 756 |
obj.base.repo.languages_url == pullrequest_fixtrue_response["base"]["repo"]["languages_url"] |
| 757 |
) |
| 758 |
assert obj.base.repo.merges_url == pullrequest_fixtrue_response["base"]["repo"]["merges_url"] |
| 759 |
assert ( |
| 760 |
obj.base.repo.milestones_url |
| 761 |
== pullrequest_fixtrue_response["base"]["repo"]["milestones_url"] |
| 762 |
) |
| 763 |
assert ( |
| 764 |
obj.base.repo.notifications_url |
| 765 |
== pullrequest_fixtrue_response["base"]["repo"]["notifications_url"] |
| 766 |
) |
| 767 |
assert obj.base.repo.pulls_url == pullrequest_fixtrue_response["base"]["repo"]["pulls_url"] |
| 768 |
assert ( |
| 769 |
obj.base.repo.releases_url == pullrequest_fixtrue_response["base"]["repo"]["releases_url"] |
| 770 |
) |
| 771 |
assert obj.base.repo.ssh_url == pullrequest_fixtrue_response["base"]["repo"]["ssh_url"] |
| 772 |
assert ( |
| 773 |
obj.base.repo.stargazers_url |
| 774 |
== pullrequest_fixtrue_response["base"]["repo"]["stargazers_url"] |
| 775 |
) |
| 776 |
assert ( |
| 777 |
obj.base.repo.statuses_url == pullrequest_fixtrue_response["base"]["repo"]["statuses_url"] |
| 778 |
) |
| 779 |
assert ( |
| 780 |
obj.base.repo.subscribers_url |
| 781 |
== pullrequest_fixtrue_response["base"]["repo"]["subscribers_url"] |
| 782 |
) |
| 783 |
assert ( |
| 784 |
obj.base.repo.subscription_url |
| 785 |
== pullrequest_fixtrue_response["base"]["repo"]["subscription_url"] |
| 786 |
) |
| 787 |
assert obj.base.repo.tags_url == pullrequest_fixtrue_response["base"]["repo"]["tags_url"] |
| 788 |
assert obj.base.repo.teams_url == pullrequest_fixtrue_response["base"]["repo"]["teams_url"] |
| 789 |
assert obj.base.repo.trees_url == pullrequest_fixtrue_response["base"]["repo"]["trees_url"] |
| 790 |
assert obj.base.repo.clone_url == pullrequest_fixtrue_response["base"]["repo"]["clone_url"] |
| 791 |
assert obj.base.repo.mirror_url == pullrequest_fixtrue_response["base"]["repo"]["mirror_url"] |
| 792 |
assert obj.base.repo.hooks_url == pullrequest_fixtrue_response["base"]["repo"]["hooks_url"] |
| 793 |
assert obj.base.repo.svn_url == pullrequest_fixtrue_response["base"]["repo"]["svn_url"] |
| 794 |
assert obj.base.repo.homepage == pullrequest_fixtrue_response["base"]["repo"]["homepage"] |
| 795 |
assert obj.base.repo.language == pullrequest_fixtrue_response["base"]["repo"]["language"] |
| 796 |
assert obj.base.repo.forks_count == pullrequest_fixtrue_response["base"]["repo"]["forks_count"] |
| 797 |
assert ( |
| 798 |
obj.base.repo.stargazers_count |
| 799 |
== pullrequest_fixtrue_response["base"]["repo"]["stargazers_count"] |
| 800 |
) |
| 801 |
assert ( |
| 802 |
obj.base.repo.watchers_count |
| 803 |
== pullrequest_fixtrue_response["base"]["repo"]["watchers_count"] |
| 804 |
) |
| 805 |
assert obj.base.repo.size == pullrequest_fixtrue_response["base"]["repo"]["size"] |
| 806 |
assert ( |
| 807 |
obj.base.repo.default_branch |
| 808 |
== pullrequest_fixtrue_response["base"]["repo"]["default_branch"] |
| 809 |
) |
| 810 |
assert ( |
| 811 |
obj.base.repo.open_issues_count |
| 812 |
== pullrequest_fixtrue_response["base"]["repo"]["open_issues_count"] |
| 813 |
) |
| 814 |
assert obj.base.repo.is_template == pullrequest_fixtrue_response["base"]["repo"]["is_template"] |
| 815 |
assert obj.base.repo.topics[0] == pullrequest_fixtrue_response["base"]["repo"]["topics"][0] |
| 816 |
assert obj.base.repo.has_issues == pullrequest_fixtrue_response["base"]["repo"]["has_issues"] |
| 817 |
assert ( |
| 818 |
obj.base.repo.has_projects == pullrequest_fixtrue_response["base"]["repo"]["has_projects"] |
| 819 |
) |
| 820 |
assert obj.base.repo.has_wiki == pullrequest_fixtrue_response["base"]["repo"]["has_wiki"] |
| 821 |
assert obj.base.repo.has_pages == pullrequest_fixtrue_response["base"]["repo"]["has_pages"] |
| 822 |
assert ( |
| 823 |
obj.base.repo.has_downloads == pullrequest_fixtrue_response["base"]["repo"]["has_downloads"] |
| 824 |
) |
| 825 |
assert obj.base.repo.archived == pullrequest_fixtrue_response["base"]["repo"]["archived"] |
| 826 |
assert obj.base.repo.disabled == pullrequest_fixtrue_response["base"]["repo"]["disabled"] |
| 827 |
assert obj.base.repo.visibility == pullrequest_fixtrue_response["base"]["repo"]["visibility"] |
| 828 |
assert obj.base.repo.pushed_at == pullrequest_fixtrue_response["base"]["repo"]["pushed_at"] |
| 829 |
assert obj.base.repo.created_at == pullrequest_fixtrue_response["base"]["repo"]["created_at"] |
| 830 |
assert obj.base.repo.updated_at == pullrequest_fixtrue_response["base"]["repo"]["updated_at"] |
| 831 |
assert ( |
| 832 |
obj.base.repo.permissions.admin |
| 833 |
== pullrequest_fixtrue_response["base"]["repo"]["permissions"]["admin"] |
| 834 |
) |
| 835 |
assert ( |
| 836 |
obj.base.repo.permissions.push |
| 837 |
== pullrequest_fixtrue_response["base"]["repo"]["permissions"]["push"] |
| 838 |
) |
| 839 |
assert ( |
| 840 |
obj.base.repo.permissions.pull |
| 841 |
== pullrequest_fixtrue_response["base"]["repo"]["permissions"]["pull"] |
| 842 |
) |
| 843 |
assert ( |
| 844 |
obj.base.repo.allow_rebase_merge |
| 845 |
== pullrequest_fixtrue_response["base"]["repo"]["allow_rebase_merge"] |
| 846 |
) |
| 847 |
assert ( |
| 848 |
obj.base.repo.template_repository |
| 849 |
== pullrequest_fixtrue_response["base"]["repo"]["template_repository"] |
| 850 |
) |
| 851 |
assert ( |
| 852 |
obj.base.repo.temp_clone_token |
| 853 |
== pullrequest_fixtrue_response["base"]["repo"]["temp_clone_token"] |
| 854 |
) |
| 855 |
assert ( |
| 856 |
obj.base.repo.allow_squash_merge |
| 857 |
== pullrequest_fixtrue_response["base"]["repo"]["allow_squash_merge"] |
| 858 |
) |
| 859 |
assert ( |
| 860 |
obj.base.repo.delete_branch_on_merge |
| 861 |
== pullrequest_fixtrue_response["base"]["repo"]["delete_branch_on_merge"] |
| 862 |
) |
| 863 |
assert ( |
| 864 |
obj.base.repo.allow_merge_commit |
| 865 |
== pullrequest_fixtrue_response["base"]["repo"]["allow_merge_commit"] |
| 866 |
) |
| 867 |
assert ( |
| 868 |
obj.base.repo.subscribers_count |
| 869 |
== pullrequest_fixtrue_response["base"]["repo"]["subscribers_count"] |
| 870 |
) |
| 871 |
assert ( |
| 872 |
obj.base.repo.network_count == pullrequest_fixtrue_response["base"]["repo"]["network_count"] |
| 873 |
) |
| 874 |
assert obj.author_association == pullrequest_fixtrue_response["author_association"] |
| 875 |
assert obj.draft == pullrequest_fixtrue_response["draft"] |
| 876 |
assert obj.merged == pullrequest_fixtrue_response["merged"] |
| 877 |
assert obj.mergeable == pullrequest_fixtrue_response["mergeable"] |
| 878 |
assert obj.rebaseable == pullrequest_fixtrue_response["rebaseable"] |
| 879 |
assert obj.mergeable_state == pullrequest_fixtrue_response["mergeable_state"] |
| 880 |
assert obj.merged_by.login == pullrequest_fixtrue_response["merged_by"]["login"] |
| 881 |
assert obj.merged_by.id == pullrequest_fixtrue_response["merged_by"]["id"] |
| 882 |
assert obj.merged_by.node_id == pullrequest_fixtrue_response["merged_by"]["node_id"] |
| 883 |
assert obj.merged_by.avatar_url == pullrequest_fixtrue_response["merged_by"]["avatar_url"] |
| 884 |
assert obj.merged_by.gravatar_id == pullrequest_fixtrue_response["merged_by"]["gravatar_id"] |
| 885 |
assert obj.merged_by.url == pullrequest_fixtrue_response["merged_by"]["url"] |
| 886 |
assert obj.merged_by.html_url == pullrequest_fixtrue_response["merged_by"]["html_url"] |
| 887 |
assert obj.merged_by.followers_url == pullrequest_fixtrue_response["merged_by"]["followers_url"] |
| 888 |
assert obj.merged_by.following_url == pullrequest_fixtrue_response["merged_by"]["following_url"] |
| 889 |
assert obj.merged_by.gists_url == pullrequest_fixtrue_response["merged_by"]["gists_url"] |
| 890 |
assert obj.merged_by.starred_url == pullrequest_fixtrue_response["merged_by"]["starred_url"] |
| 891 |
assert ( |
| 892 |
obj.merged_by.subscriptions_url |
| 893 |
== pullrequest_fixtrue_response["merged_by"]["subscriptions_url"] |
| 894 |
) |
| 895 |
assert ( |
| 896 |
obj.merged_by.organizations_url |
| 897 |
== pullrequest_fixtrue_response["merged_by"]["organizations_url"] |
| 898 |
) |
| 899 |
assert obj.merged_by.repos_url == pullrequest_fixtrue_response["merged_by"]["repos_url"] |
| 900 |
assert obj.merged_by.events_url == pullrequest_fixtrue_response["merged_by"]["events_url"] |
| 901 |
assert ( |
| 902 |
obj.merged_by.received_events_url |
| 903 |
== pullrequest_fixtrue_response["merged_by"]["received_events_url"] |
| 904 |
) |
| 905 |
assert obj.merged_by.type == pullrequest_fixtrue_response["merged_by"]["type"] |
| 906 |
assert obj.merged_by.site_admin == pullrequest_fixtrue_response["merged_by"]["site_admin"] |
| 907 |
assert obj.comments == pullrequest_fixtrue_response["comments"] |
| 908 |
assert obj.review_comments == pullrequest_fixtrue_response["review_comments"] |
| 909 |
assert obj.maintainer_can_modify == pullrequest_fixtrue_response["maintainer_can_modify"] |
| 910 |
assert obj.commits == pullrequest_fixtrue_response["commits"] |
| 911 |
assert obj.additions == pullrequest_fixtrue_response["additions"] |
| 912 |
assert obj.deletions == pullrequest_fixtrue_response["deletions"] |
| 913 |
assert obj.changed_files == pullrequest_fixtrue_response["changed_files"] |