Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • github3/github3.py
1 result
Show changes
Commits on Source (7)
Showing with 401 additions and 292 deletions
Loading
Loading
@@ -50,6 +50,24 @@ class EventOrganization(GitHubCore):
return self._instance_or_null(orgs.Organization, json)
 
 
class EventPullRequest(GitHubCore):
"""The class that represents the pr information returned in Events."""
def _update_attributes(self, pull):
self.id = pull['id']
self.number = pull['number']
self.state = pull['state']
self.title = pull['title']
self.locked = pull['locked']
self._api = self.url = pull['url']
def to_pull(self):
"""Retrieve a full PullRequest object for this EventPullRequest."""
from . import pulls
json = self._json(self._get(self.url), 200)
return self._instance_or_null(pulls.PullRequest, json)
class Event(GitHubCore):
 
"""The :class:`Event <Event>` object. It structures and handles the data
Loading
Loading
@@ -161,19 +179,18 @@ def _member(payload, session):
 
 
def _pullreqev(payload, session):
from .pulls import PullRequest
if payload.get('pull_request'):
payload['pull_request'] = PullRequest(payload['pull_request'],
session)
payload['pull_request'] = EventPullRequest(payload['pull_request'],
session)
return payload
 
 
def _pullreqcomm(payload, session):
from .pulls import PullRequest, ReviewComment
from .pulls import ReviewComment
# Transform the Pull Request attribute
pull = payload.get('pull_request')
if pull:
payload['pull_request'] = PullRequest(pull, session)
payload['pull_request'] = EventPullRequest(pull, session)
 
# Transform the Comment attribute
comment = payload.get('comment')
Loading
Loading
Loading
Loading
@@ -253,11 +253,12 @@ class GitHub(GitHubCore):
 
@requires_auth
def create_issue(self, owner, repository, title, body=None, assignee=None,
milestone=None, labels=[]):
milestone=None, labels=[], assignees=None):
"""Create an issue on the project 'repository' owned by 'owner'
with title 'title'.
 
``body``, ``assignee``, ``milestone``, ``labels`` are all optional.
``body``, ``assignee``, ``assignees``, ``milestone``, ``labels``
are all optional.
 
.. warning::
 
Loading
Loading
@@ -274,6 +275,8 @@ class GitHub(GitHubCore):
formatted
:param str assignee: (optional), Login of person to assign
the issue to
:param assignees: (optional), logins of the users to assign the
issue to
:param int milestone: (optional), id number of the milestone to
attribute this issue to (e.g. ``m`` is a :class:`Milestone
<github3.issues.Milestone>` object, ``m.number`` is what you pass
Loading
Loading
@@ -286,7 +289,8 @@ class GitHub(GitHubCore):
repo = self.repository(owner, repository)
 
if repo is not None:
return repo.create_issue(title, body, assignee, milestone, labels)
return repo.create_issue(title, body, assignee, milestone,
labels, assignees)
 
return self._instance_or_null(Issue, None)
 
Loading
Loading
# -*- coding: utf-8 -*-
"""
github3.pulls
=============
This module contains all the classes relating to pull requests.
"""
"""This module contains all the classes relating to pull requests."""
from __future__ import unicode_literals
 
from json import dumps
Loading
Loading
@@ -24,7 +18,10 @@ from .repos.contents import Contents
class PullDestination(models.GitHubCore):
"""The :class:`PullDestination <PullDestination>` object.
 
See also: http://developer.github.com/v3/pulls/#get-a-single-pull-request
Please see GitHub's `PullRequest Documentation`_ for more information.
.. _PullRequest Documentation:
http://developer.github.com/v3/pulls/#get-a-single-pull-request
"""
 
def __init__(self, dest, direction):
Loading
Loading
@@ -58,7 +55,10 @@ class PullFile(models.GitHubCore):
 
"""The :class:`PullFile <PullFile>` object.
 
See also: http://developer.github.com/v3/pulls/#list-pull-requests-files
Please see GitHub's `PR Files Documentation`_ for more information.
.. _PR Files Documentation:
http://developer.github.com/v3/pulls/#list-pull-requests-files
"""
 
def _update_attributes(self, pfile):
Loading
Loading
@@ -104,84 +104,43 @@ class PullFile(models.GitHubCore):
return self._instance_or_null(Contents, json)
 
 
class PullRequest(models.GitHubCore):
class _PullRequest(models.GitHubCore):
 
"""The :class:`PullRequest <PullRequest>` object.
 
Two pull request instances can be checked like so::
p1 == p2
p1 != p2
And is equivalent to::
Please see GitHub's `PullRequests Documentation`_ for more information.
 
p1.id == p2.id
p1.id != p2.id
See also: http://developer.github.com/v3/pulls/
.. _PullRequests Documentation:
http://developer.github.com/v3/pulls/
"""
 
def _update_attributes(self, pull):
self._api = self._get_attribute(pull, 'url')
self._api = pull['url']
 
#: Base of the merge
self.base = self._class_attribute(
pull, 'base', PullDestination, 'Base'
)
self.base = PullDestination(pull['base'], 'Base')
 
#: Body of the pull request message
self.body = self._get_attribute(pull, 'body')
self.body = pull['body']
 
#: Body of the pull request as HTML
self.body_html = self._get_attribute(pull, 'body_html')
self.body_html = pull['body_html']
 
#: Body of the pull request as plain text
self.body_text = self._get_attribute(pull, 'body_text')
#: Number of additions on this pull request
self.additions_count = self._get_attribute(pull, 'additions')
#: Number of deletions on this pull request
self.deletions_count = self._get_attribute(pull, 'deletions')
self.body_text = pull['body_text']
 
#: datetime object representing when the pull was closed
self.closed_at = self._strptime_attribute(pull, 'closed_at')
 
#: Number of comments
self.comments_count = self._get_attribute(pull, 'comments')
#: Comments url (not a template)
self.comments_url = self._get_attribute(pull, 'comments_url')
#: Number of commits
self.commits_count = self._get_attribute(pull, 'commits')
#: GitHub.com url of commits in this pull request
self.commits_url = self._get_attribute(pull, 'commits_url')
#: datetime object representing when the pull was created
self.created_at = self._strptime_attribute(pull, 'created_at')
 
#: URL to view the diff associated with the pull
self.diff_url = self._get_attribute(pull, 'diff_url')
#: The new head after the pull request
self.head = self._class_attribute(
pull, 'head', PullDestination, 'Head'
)
#: The URL of the pull request
self.html_url = self._get_attribute(pull, 'html_url')
self.head = PullDestination(pull['head'], 'Head')
 
#: The unique id of the pull request
self.id = self._get_attribute(pull, 'id')
 
#: The URL of the associated issue
self.issue_url = self._get_attribute(pull, 'issue_url')
#: Statuses URL
self.statuses_url = self._get_attribute(pull, 'statuses_url')
#: Dictionary of _links. Changed in 1.0
self.links = self._get_attribute(pull, '_links', {})
 
Loading
Loading
@@ -189,45 +148,16 @@ class PullRequest(models.GitHubCore):
#: If merged, holds commit sha of the merge commit, squashed commit on
#: the base branch or the commit that the base branch was updated to
#: after rebasing the PR.
self.merge_commit_sha = self._get_attribute(pull, 'merge_commit_sha')
#: Boolean representing whether the pull request has been merged
self.merged = self._get_attribute(pull, 'merged')
self.merge_commit_sha = pull['merge_commit_sha']
 
#: datetime object representing when the pull was merged
self.merged_at = self._strptime_attribute(pull, 'merged_at')
 
#: Whether the pull is deemed mergeable by GitHub
self.mergeable = self._get_attribute(pull, 'mergeable', False)
#: Whether it would be a clean merge or not
self.mergeable_state = self._get_attribute(pull, 'mergeable_state')
#: :class:`User <github3.users.User>` who merged this pull
self.merged_by = self._class_attribute(
pull, 'merged_by', users.ShortUser, self,
)
#: Number of the pull/issue on the repository
self.number = self._get_attribute(pull, 'number')
#: The URL of the patch
self.patch_url = self._get_attribute(pull, 'patch_url')
self.number = pull['number']
 
#: Review comment URL Template. Expands with ``number``
self.review_comment_url = self._class_attribute(
pull, 'review_comment_url', URITemplate
)
#: Number of review comments on the pull request
self.review_comments_count = self._get_attribute(
pull, 'review_comments'
)
#: GitHub.com url for review comments (not a template)
self.review_comments_url = self._get_attribute(
pull, 'review_comments_url'
)
self.review_comment_url = URITemplate(pull['review_comment_url'])
 
#: Returns ('owner', 'repository') this issue was filed on.
self.repository = self.base
Loading
Loading
@@ -235,24 +165,30 @@ class PullRequest(models.GitHubCore):
self.repository = self.base.repo
 
#: The state of the pull
self.state = self._get_attribute(pull, 'state')
self.state = pull['state']
 
#: The title of the request
self.title = self._get_attribute(pull, 'title')
self.title = pull['title']
 
#: datetime object representing the last time the object was changed
self.updated_at = self._strptime_attribute(pull, 'updated_at')
 
#: :class:`User <github3.users.User>` object representing the creator
#: of the pull request
self.user = self._class_attribute(pull, 'user', users.ShortUser, self)
#: :class:`User <github3.users.ShortUser>` object representing the
#: creator of the pull request
self.user = users.ShortUser(pull['user'])
 
#: :class:`User <github3.users.User>` object representing the assignee
#: of the pull request
# This is only present if the PR has been assigned.
#: :class:`User <github3.users.ShortUser>` object representing the
#: assignee of the pull request
self.assignee = self._class_attribute(
pull, 'assignee', users.ShortUser, self,
)
 
for urltype in ['comments_url', 'commits_url', 'diff_url',
'html_url', 'issue_url', 'statuses_url',
'patch_url', 'review_comments_url']:
setattr(self, urltype, pull[urltype])
def _repr(self):
return '<Pull Request [#{0}]>'.format(self.number)
 
Loading
Loading
@@ -452,11 +388,80 @@ class PullRequest(models.GitHubCore):
return False
 
 
class ShortPullRequest(_PullRequest):
"""Object for the shortened representation of a PullRequest
GitHub's API returns different amounts of information about prs based
upon how that information is retrieved. Often times, when iterating over
several prs, GitHub will return less information. To provide a clear
distinction between the types of prs, github3.py uses different classes
with different sets of attributes.
.. versionadded:: 1.0.0
"""
pass
class PullRequest(_PullRequest):
"""Object for the full representation of a PullRequest.
GitHub's API returns different amounts of information about prs based
upon how that information is retrieved. This object exists to represent
the full amount of information returned for a specific pr. For example,
you would receive this class when calling
:meth:`~github3.github.GitHub.pull_request`. To provide a clear
distinction between the types of prs, github3.py uses different classes
with different sets of attributes.
.. versionchanged:: 1.0.0
"""
def _update_attributes(self, pull):
super(PullRequest, self)._update_attributes(pull)
#: Number of additions on this pull request
self.additions_count = pull['additions']
#: Number of deletions on this pull request
self.deletions_count = pull['deletions']
#: Number of comments
self.comments_count = pull['comments']
#: Number of commits
self.commits_count = pull['commits']
#: Boolean representing whether the pull request has been merged
self.merged = pull['merged']
# This can be True, False, or None(Null). None is when the
# mergeability is still being computed. We default to False
# in that case.
#: Whether the pull is deemed mergeable by GitHub
self.mergeable = self._get_attribute(pull, 'mergeable', False)
#: Whether it would be a clean merge or not
self.mergeable_state = pull['mergeable_state']
# This may? be None(Null) while mergeability is being determined
#: :class:`User <github3.users.User>` who merged this pull
self.merged_by = self._class_attribute(
pull, 'merged_by', users.ShortUser, self,
)
#: Number of review comments on the pull request
self.review_comments_count = pull['review_comments']
class PullReview(models.GitHubCore):
 
"""The :class:`PullReview <PullReview>` object.
 
See also: https://developer.github.com/v3/pulls/reviews/
Please see GitHub's `PullReview Documentation`_ for more information.
.. _PullReview Documentation:
https://developer.github.com/v3/pulls/reviews/
"""
 
def _update_attributes(self, preview):
Loading
Loading
@@ -493,19 +498,10 @@ class ReviewComment(models.BaseComment):
 
"""The :class:`ReviewComment <ReviewComment>` object.
 
This is used to represent comments on pull requests.
Two comment instances can be checked like so::
c1 == c2
c1 != c2
And is equivalent to::
c1.id == c2.id
c1.id != c2.id
Please see GitHub's `Pull Comments Documentation`_ for more information.
 
See also: http://developer.github.com/v3/pulls/comments/
.. _Pull Comments Documentation:
http://developer.github.com/v3/pulls/comments/
"""
 
def _update_attributes(self, comment):
Loading
Loading
Loading
Loading
@@ -27,7 +27,7 @@ from ..licenses import License
from ..models import GitHubCore
from ..notifications import Subscription, Thread
from ..projects import Project
from ..pulls import PullRequest
from ..pulls import ShortPullRequest, PullRequest
from ..utils import stream_response_to_file, timestamp_parameter
from .branch import Branch
from .comment import RepoComment
Loading
Loading
@@ -391,7 +391,7 @@ class Repository(GitHubCore):
if data:
url = self._build_url('pulls', base_url=self._api)
json = self._json(self._post(url, data=data), 201)
return self._instance_or_null(PullRequest, json)
return self._instance_or_null(ShortPullRequest, json)
 
@requires_auth
def add_collaborator(self, username):
Loading
Loading
@@ -990,8 +990,8 @@ class Repository(GitHubCore):
:param str base: (required), e.g., 'master'
:param str head: (required), e.g., 'username:branch'
:param str body: (optional), markdown formatted description
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
successful, else None
:returns: :class:`ShortPullRequest <github3.pulls.ShortPullRequest>`
if successful, else None
"""
data = {'title': title, 'body': body, 'base': base,
'head': head}
Loading
Loading
@@ -1004,8 +1004,8 @@ class Repository(GitHubCore):
:param int issue: (required), issue number
:param str base: (required), e.g., 'master'
:param str head: (required), e.g., 'username:branch'
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
successful, else None
:returns: :class:`ShortPullRequest <github3.pulls.ShortPullRequest>`
if successful, else None
"""
if int(issue) > 0:
data = {'issue': issue, 'base': base, 'head': head}
Loading
Loading
@@ -1842,7 +1842,7 @@ class Repository(GitHubCore):
:param str etag: (optional), ETag from a previous request to the same
endpoint
:returns: generator of
:class:`PullRequest <github3.pulls.PullRequest>`\ s
:class:`ShortPullRequest <github3.pulls.ShortPullRequest>`\ s
"""
url = self._build_url('pulls', base_url=self._api)
params = {}
Loading
Loading
@@ -1854,7 +1854,7 @@ class Repository(GitHubCore):
 
params.update(head=head, base=base, sort=sort, direction=direction)
self._remove_none(params)
return self._iter(int(number), url, PullRequest, params, etag)
return self._iter(int(number), url, ShortPullRequest, params, etag)
 
def readme(self):
"""Get the README for this repository.
Loading
Loading
Loading
Loading
@@ -510,7 +510,8 @@ class ShortUser(_User):
.. versionadded:: 1.0.0
"""
 
pass
def _repr(self):
return '<User [{s.login}]>'.format(s=self)
 
 
class User(_User):
Loading
Loading
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.7.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/github3py/fork_this"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+1YTY+jOBD9KxHSnDYTE0g6CdJqdi573cuc9hIZMGA1YGSbRGnU/32rbBJINPlyTiu11GoR8Ht+riqXy9V5PPWi5Xr+tlkvpl5NK+ZFXibk+1YXXHlTL2vLctu/z7ku2jhsDmQ8QuxrJr2o80qR8xrgp2EAR/r5ah3Ml29Tj+6opnLbyhJGFVo3KiIkmOXSfpgloiL2kYSbNxambBmGgU/jbLNeLtPNPEjSMN0swnn2I/3TEHwLf34L/oY/nrJa80TUambnRzZ4ny3pis0D6gewyCxMNn7sp3S1WGyCdBWvwllT56DzqGGLgr17swPgfBG04aNpSauYVGRsh0JX5cXCB5lnIzNRlmIP+Ivht6cAj/Qw9Jl55nXuQgGwjghdMHAULOMTjcOVflKOgXSwMKXBpEiiwPWSpc9J6kEgCIPssyOSNcKwtbFKJG80B48/yTmGApWQOa35B3WgAijuERT1pAgDASjbQdg+ibWYjjSS72hyQHNIljC+A+u68F2AgU4fGswD/4ws431OPTOhhi8ZLRWbwhZ+KKjPskXKTn6DGX5OjCG4FvIw0WKimdITTC4QhRORgRT8cZrw5qYzTMNWOpsVWe5Y+SrcEKGv3tnBmQOxHYH//W5IYIvSWEgKK3cmPSPpyPgnBoVmtHLmNmAgKYRwt5wBAwlXqmUPxeZ1LxgORY7BX7dVbLPTIyF/ndaiQSNViuc1Y84WOxF0Jv+jB2JJ66RwpzziO2KfjFdp7iwRsSirFLEzBxxbxBB0RBXUHg96+4oqZET8GaFk2UsSEX8i1PIFvxp5SHCig1NJg4ud9R3xpOstWNI6b2nuzngiAO/imZnTj7sVxPU9MTAAHZRUWvK4fS1RDRyo0J7AsH/dTThQDISmGrhdDNxY9KgsMMuuKn7vZL7O1sPPQvpFSozDS1r8fb+AuC0T8R0Z8qlN1j2zqzX7bH3UR7qBHwPqNc0WT7o/GqoLzEAwTUMlcxXbw0kXU8U+Z7NZVzBqitaKyRd2pUUDDZVJAeWZq77uiIdKpKLalMEZykuhLC4FTZ230YkAyKzLXDVa9DiOGrg5Ogsz4DFbxUuoDUXtniMHhjFvLTTPePJI9X99G52RdD8UrxM2pWU5haiESymHOIWCFj0GRR9zt4pFg3y4p5u4lwzq8XRLNdTSgT8Pvvub7/PlLz+IFn4Uhv/CmLZJz8aEOCZ4+xWE0WIdLX0c07SquEMD2acPDXiCa/vvbq9DyY2XYeBVqhhAfw2QyD6edRJ6SFKCjy+C8LG5dpep/zYM5BWiYg0cu15UQ7iBXP4Bz/MAOiF7qqFwg/MpEW0N1vXRdfaQPo4uqNraqPciLVu8D8GbYUeNXu75Oz8OsleRgbbiUoq+KWJliIbVPfNx+qW9CCkjZPQdejeDVvMxZRltS721BSOERUWVhv4MOJnJCvTihRm7NTStsFtjlWMADM8l9GfwPVz5aqb32A0a9I6vy19dn6+uz/jK/dX1udkHNN2r/1nX5/M/7sZ/KCMWAAA=", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "4960", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes", "transfer-encoding": "chunked", "x-github-request-id": "4B79B1ED:56EA:21381E:52463041", "content-encoding": "gzip", "vary": "Accept, Authorization, Cookie, Accept-Encoding", "x-accepted-oauth-scopes": "repo, public_repo, repo:status, repo:deployment, delete_repo, site_admin", "server": "GitHub.com", "cache-control": "private, max-age=60, s-maxage=60", "last-modified": "Thu, 26 Sep 2013 23:48:50 GMT", "x-ratelimit-limit": "5000", "etag": "\"37c4fa0402ebadb9717bc8cf09b9c8e9\"", "access-control-allow-credentials": "true", "date": "Sat, 28 Sep 2013 01:26:25 GMT", "x-oauth-scopes": "user, repo, gist", "content-type": "application/json; charset=utf-8", "access-control-allow-origin": "*", "x-ratelimit-reset": "1380334381"}, "url": "https://api.github.com/repos/github3py/fork_this", "status_code": 200}, "recorded_at": "2013-09-28T01:25:38"}, {"request": {"body": "{\"body\": \"Let's see how well this works with Betamax\", \"labels\": [], \"title\": \"Test issue creation\"}", "headers": {"Content-Length": "100", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.7.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "POST", "uri": "https://api.github.com/repos/github3py/fork_this/issues"}, "response": {"body": {"string": "{\"url\":\"https://api.github.com/repos/github3py/fork_this/issues/6\",\"labels_url\":\"https://api.github.com/repos/github3py/fork_this/issues/6/labels{/name}\",\"comments_url\":\"https://api.github.com/repos/github3py/fork_this/issues/6/comments\",\"events_url\":\"https://api.github.com/repos/github3py/fork_this/issues/6/events\",\"html_url\":\"https://github.com/github3py/fork_this/issues/6\",\"id\":20203750,\"number\":6,\"title\":\"Test issue creation\",\"user\":{\"login\":\"sigmavirus24\",\"id\":240830,\"avatar_url\":\"https://1.gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https%3A%2F%2Fidenticons.github.com%2F4a71764034cdae877484be72718ba526.png\",\"gravatar_id\":\"c148356d89f925e692178bee1d93acf7\",\"url\":\"https://api.github.com/users/sigmavirus24\",\"html_url\":\"https://github.com/sigmavirus24\",\"followers_url\":\"https://api.github.com/users/sigmavirus24/followers\",\"following_url\":\"https://api.github.com/users/sigmavirus24/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/sigmavirus24/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/sigmavirus24/subscriptions\",\"organizations_url\":\"https://api.github.com/users/sigmavirus24/orgs\",\"repos_url\":\"https://api.github.com/users/sigmavirus24/repos\",\"events_url\":\"https://api.github.com/users/sigmavirus24/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/sigmavirus24/received_events\",\"type\":\"User\"},\"labels\":[],\"state\":\"open\",\"assignee\":null,\"milestone\":null,\"comments\":0,\"created_at\":\"2013-09-28T01:26:25Z\",\"updated_at\":\"2013-09-28T01:26:25Z\",\"closed_at\":null,\"body_html\":\"<p>Let's see how well this works with Betamax</p>\",\"body_text\":\"Let's see how well this works with Betamax\",\"body\":\"Let's see how well this works with Betamax\",\"closed_by\":null}", "encoding": "utf-8"}, "headers": {"status": "201 Created", "x-accepted-oauth-scopes": "repo, public_repo", "x-ratelimit-remaining": "4959", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes", "x-github-request-id": "4B79B1ED:56EA:213843:52463041", "cache-control": "private, max-age=60, s-maxage=60", "vary": "Accept, Authorization, Cookie", "content-length": "1814", "server": "GitHub.com", "x-ratelimit-limit": "5000", "location": "https://api.github.com/repos/github3py/fork_this/issues/6", "access-control-allow-credentials": "true", "date": "Sat, 28 Sep 2013 01:26:25 GMT", "x-oauth-scopes": "user, repo, gist", "content-type": "application/json; charset=utf-8", "access-control-allow-origin": "*", "etag": "\"440eb0743eab60ef2137e6fb35569fe7\"", "x-ratelimit-reset": "1380334381"}, "url": "https://api.github.com/repos/github3py/fork_this/issues", "status_code": 201}, "recorded_at": "2013-09-28T01:25:38"}], "recorded_with": "betamax"}
\ No newline at end of file
{"http_interactions": [{"request": {"body": {"encoding": "utf-8", "string": ""}, "headers": {"User-Agent": "github3.py/1.0.0a4", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.drax-preview+json", "Connection": "keep-alive", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/github3py/fork_this"}, "response": {"body": {"encoding": "utf-8", "base64_string": "H4sIAAAAAAAAA+1Yy3LrNgz9lYy2dUI7r5topnPbL+jmrrrx0BJtsZFElaTscTT59x6QlCV5aseht9l4ZArnCAQBEECXyDxJn14Wz68vj7Ok5pVI0mSt9NvSFtIks2TdluUyrG+kLdrVQ7NnYwm1q4VO0i4p1UbWgB/EACf6xY+X+8XT8yzhW265Xra6hFRhbWNSxvyimd95WGuEzlRtRW3vMlWxlgX4z+3vjyDc6MBCzAkWjtgaGYg8GmyGjRUqbFUeaeBfO/mx5FqVpdoBf6zw2U/ANAFGxnPPst7EUADWMWULAYthGx+0eWnsF9VxkA4bM3YpcyIxOAMt8q+pFEBQiE77o2NaNMqxtSuTadlYqeovqjaBgkrpDa/lO4+gApSclZT6ohIOAqjYwuO+iPWYjjVabnm2J3NokQm5hXVj+I7AoLP7hgLyr5FlyObSiiXPK4q2NS+N+JglTgcLYbcwQ3hd5OeTSM7F4Sjx0T9vnG2kVXp/Y9WNFcbeUODDMW/UGnrQn8MHz8ahYxqia/JVYvnE8CfhjoiO703sozkI2zH8hgDJELV8pTTHzqNJJyQdG/8lP7GCV9HcDgySQql4yzkwSKQxrbjIXU+fguMwrI+Huq1WPmFdEgWnaT0aOnJj5KYWItpiB4KO9bl0pXmdFfGUPb5j/smdKt9Eq0hYUKxKtYrmwPXFHEHHTMH9jWGX12hFjISfEGqxvkpFwh8Irb7iXJ16RHCgw0VlccTR+vV41gULlrzetHwTz3ggwOnSNbrh758WFadjYmAAHRVKWq7a6xLVwEEa+vsc8RtvwoFiIHQFwvma48ymR0WG23ZVyc8u69NsAT5x6SspyQ+Paen/5zXFeTUJ37Ehn/pkHZhjrRmyda/fmD9U3tFH3+NZ91vDbUEZCJ9puBaxygY461Ycdc7d3V1XCO7q2EroK6LSo0HDdVagYovVr+vxqEQqbl1lvCb1clTKpeJ5tC0PBCDzRxaro0ePz7lBVxetmAOP2SpZojZUdXyOHBjGvLWyci2zSxqC02E0Iel+GllnYsbLcgavtDKT8FMUtHRiKPpEvFU8Guqjh/adQCngstFW1sLjO+bbtlw0pdpflVFGFBSYWqBhyJfcoti/ny/ub+evt4unX/P79HGePjz8DZm2yScyP24htnj+NZ+nEJu/kkzTmmJEcyTyg0SQHoPv4gk9//913ENPQA08QMYUA+iPAZL6x8kYIkCyEk54FCWXfWt7fDedh0G9QlWiQV2QpDXigZqydzzfT+74TLU1rDufJTtuUWziTh2W+rqgJyi4WfpITVKrW+rhsNJo9Y/IrBmvDZlhJLiTb3ICpJrl0J35Jit8fIHkKbVWYRTj9Q95DFOV0EGqRtRBoV7rVwSJzERtDrv2/VcKxpF4kkKw37Hbfi7WvC3t0pfK8LeKG4upEbxH6Aq7pukBzZBCV+v3T57Vb4mSjn9Gs4vwVbul+bfl8BGXyXsx/8YtQWkqE6ZvtKB7ZIoZzx2+51jDiO97jtWPKM9P/L7nWNMpKyqgyRAMUX75HKsWdkfj5yFVjTuSsPrw8R/ymWqauRYAAA==", "string": ""}, "headers": {"Date": "Tue, 19 Dec 2017 20:21:14 GMT", "Content-Type": "application/json; charset=utf-8", "Transfer-Encoding": "chunked", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", "X-RateLimit-Remaining": "4992", "X-RateLimit-Reset": "1513715907", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "ETag": "W/\"c5bbc08fdf5bc5d5a1860a3da503c9f8\"", "Last-Modified": "Sat, 16 Dec 2017 00:02:09 GMT", "X-OAuth-Scopes": "admin:org, delete_repo, repo", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; param=drax-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Access-Control-Allow-Origin": "*", "Content-Security-Policy": "default-src 'none'", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "deny", "X-XSS-Protection": "1; mode=block", "X-Runtime-rack": "0.062139", "Content-Encoding": "gzip", "X-GitHub-Request-Id": "E6F8:5EA5:7D7B53:AD3298:5A3974B9"}, "status": {"code": 200, "message": "OK"}, "url": "https://api.github.com/repos/github3py/fork_this"}, "recorded_at": "2017-12-19T20:21:15"}, {"request": {"body": {"encoding": "utf-8", "string": "{\"title\": \"Test issue creation\", \"body\": \"Let's see how well this works with Betamax\", \"labels\": []}"}, "headers": {"User-Agent": "github3.py/1.0.0a4", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "Connection": "keep-alive", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>", "Content-Length": "100"}, "method": "POST", "uri": "https://api.github.com/repos/github3py/fork_this/issues"}, "response": {"body": {"encoding": "utf-8", "string": "{\"url\":\"https://api.github.com/repos/github3py/fork_this/issues/14\",\"repository_url\":\"https://api.github.com/repos/github3py/fork_this\",\"labels_url\":\"https://api.github.com/repos/github3py/fork_this/issues/14/labels{/name}\",\"comments_url\":\"https://api.github.com/repos/github3py/fork_this/issues/14/comments\",\"events_url\":\"https://api.github.com/repos/github3py/fork_this/issues/14/events\",\"html_url\":\"https://github.com/github3py/fork_this/issues/14\",\"id\":283357407,\"number\":14,\"title\":\"Test issue creation\",\"user\":{\"login\":\"omgjlk\",\"id\":523287,\"avatar_url\":\"https://avatars2.githubusercontent.com/u/523287?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/omgjlk\",\"html_url\":\"https://github.com/omgjlk\",\"followers_url\":\"https://api.github.com/users/omgjlk/followers\",\"following_url\":\"https://api.github.com/users/omgjlk/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/omgjlk/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/omgjlk/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/omgjlk/subscriptions\",\"organizations_url\":\"https://api.github.com/users/omgjlk/orgs\",\"repos_url\":\"https://api.github.com/users/omgjlk/repos\",\"events_url\":\"https://api.github.com/users/omgjlk/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/omgjlk/received_events\",\"type\":\"User\",\"site_admin\":false},\"labels\":[],\"state\":\"open\",\"locked\":false,\"assignee\":null,\"assignees\":[],\"milestone\":null,\"comments\":0,\"created_at\":\"2017-12-19T20:21:15Z\",\"updated_at\":\"2017-12-19T20:21:15Z\",\"closed_at\":null,\"author_association\":\"OWNER\",\"body_html\":\"<p>Let's see how well this works with Betamax</p>\",\"body_text\":\"Let's see how well this works with Betamax\",\"body\":\"Let's see how well this works with Betamax\",\"closed_by\":null}"}, "headers": {"Date": "Tue, 19 Dec 2017 20:21:15 GMT", "Content-Type": "application/json; charset=utf-8", "Content-Length": "1775", "Server": "GitHub.com", "Status": "201 Created", "X-RateLimit-Limit": "5000", "X-RateLimit-Remaining": "4991", "X-RateLimit-Reset": "1513715907", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "ETag": "\"c8220593ab9842b65a4e97be35846fd8\"", "X-OAuth-Scopes": "admin:org, delete_repo, repo", "X-Accepted-OAuth-Scopes": "", "Location": "https://api.github.com/repos/github3py/fork_this/issues/14", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "Access-Control-Expose-Headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Access-Control-Allow-Origin": "*", "Content-Security-Policy": "default-src 'none'", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "deny", "X-XSS-Protection": "1; mode=block", "X-Runtime-rack": "0.235708", "X-GitHub-Request-Id": "E6F8:5EA5:7D7BEF:AD3307:5A3974BA"}, "status": {"code": 201, "message": "Created"}, "url": "https://api.github.com/repos/github3py/fork_this/issues"}, "recorded_at": "2017-12-19T20:21:16"}], "recorded_with": "betamax/0.8.0"}
\ No newline at end of file
{"http_interactions": [{"request": {"body": {"encoding": "utf-8", "string": ""}, "headers": {"User-Agent": "github3.py/1.0.0a4", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.drax-preview+json", "Connection": "keep-alive", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/github3py/fork_this"}, "response": {"body": {"encoding": "utf-8", "base64_string": "H4sIAAAAAAAAA+1Yy3LrNgz9lYy2dUI7r5topnPbL+jmrrrx0BJtsZFElaTscTT59x6QlCV5aseht9l4ZArnCAQBEECXyDxJn14Wz68vj7Ok5pVI0mSt9NvSFtIks2TdluUyrG+kLdrVQ7NnYwm1q4VO0i4p1UbWgB/EACf6xY+X+8XT8yzhW265Xra6hFRhbWNSxvyimd95WGuEzlRtRW3vMlWxlgX4z+3vjyDc6MBCzAkWjtgaGYg8GmyGjRUqbFUeaeBfO/mx5FqVpdoBf6zw2U/ANAFGxnPPst7EUADWMWULAYthGx+0eWnsF9VxkA4bM3YpcyIxOAMt8q+pFEBQiE77o2NaNMqxtSuTadlYqeovqjaBgkrpDa/lO4+gApSclZT6ohIOAqjYwuO+iPWYjjVabnm2J3NokQm5hXVj+I7AoLP7hgLyr5FlyObSiiXPK4q2NS+N+JglTgcLYbcwQ3hd5OeTSM7F4Sjx0T9vnG2kVXp/Y9WNFcbeUODDMW/UGnrQn8MHz8ahYxqia/JVYvnE8CfhjoiO703sozkI2zH8hgDJELV8pTTHzqNJJyQdG/8lP7GCV9HcDgySQql4yzkwSKQxrbjIXU+fguMwrI+Huq1WPmFdEgWnaT0aOnJj5KYWItpiB4KO9bl0pXmdFfGUPb5j/smdKt9Eq0hYUKxKtYrmwPXFHEHHTMH9jWGX12hFjISfEGqxvkpFwh8Irb7iXJ16RHCgw0VlccTR+vV41gULlrzetHwTz3ggwOnSNbrh758WFadjYmAAHRVKWq7a6xLVwEEa+vsc8RtvwoFiIHQFwvma48ymR0WG23ZVyc8u69NsAT5x6SspyQ+Paen/5zXFeTUJ37Ehn/pkHZhjrRmyda/fmD9U3tFH3+NZ91vDbUEZCJ9puBaxygY461Ycdc7d3V1XCO7q2EroK6LSo0HDdVagYovVr+vxqEQqbl1lvCb1clTKpeJ5tC0PBCDzRxaro0ePz7lBVxetmAOP2SpZojZUdXyOHBjGvLWyci2zSxqC02E0Iel+GllnYsbLcgavtDKT8FMUtHRiKPpEvFU8Guqjh/adQCngstFW1sLjO+bbtlw0pdpflVFGFBSYWqBhyJfcoti/ny/ub+evt4unX/P79HGePjz8DZm2yScyP24htnj+NZ+nEJu/kkzTmmJEcyTyg0SQHoPv4gk9//913ENPQA08QMYUA+iPAZL6x8kYIkCyEk54FCWXfWt7fDedh0G9QlWiQV2QpDXigZqydzzfT+74TLU1rDufJTtuUWziTh2W+rqgJyi4WfpITVKrW+rhsNJo9Y/IrBmvDZlhJLiTb3ICpJrl0J35Jit8fIHkKbVWYRTj9Q95DFOV0EGqRtRBoV7rFwSJzERtDrv2/VcKxpF4kkKw37Hbfi7WvC3t0pfK8LeKG4upEbxH6Aq7pukBzZBCV+v3T57Vb4mSjn9Gs4vwVbul+bfl8BGXyXsx/8YtQWkqE6ZvtKB7ZIoZzx2+51jDiO97jtWPKM9P/L7nWNMpKyqgyRAMUX75HKsWdkfj5yFVjTuSsPrw8R8eYY8VuRYAAA==", "string": ""}, "headers": {"Date": "Tue, 19 Dec 2017 20:00:22 GMT", "Content-Type": "application/json; charset=utf-8", "Transfer-Encoding": "chunked", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", "X-RateLimit-Remaining": "4995", "X-RateLimit-Reset": "1513715907", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "ETag": "W/\"e403662f367bf0145983debb8fe265e0\"", "Last-Modified": "Sat, 16 Dec 2017 00:02:09 GMT", "X-OAuth-Scopes": "admin:org, delete_repo, repo", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; param=drax-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Access-Control-Allow-Origin": "*", "Content-Security-Policy": "default-src 'none'", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "deny", "X-XSS-Protection": "1; mode=block", "X-Runtime-rack": "0.072790", "Content-Encoding": "gzip", "X-GitHub-Request-Id": "E623:5EA3:191DBA:22A3B9:5A396FD6"}, "status": {"code": 200, "message": "OK"}, "url": "https://api.github.com/repos/github3py/fork_this"}, "recorded_at": "2017-12-19T20:00:22"}, {"request": {"body": {"encoding": "utf-8", "string": "{\"title\": \"Test issue creation assignees\", \"body\": \"Let's see how well this works with Betamax\", \"labels\": [], \"assignees\": [\"omgjlk\", \"sigmavirus24\"]}"}, "headers": {"User-Agent": "github3.py/1.0.0a4", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "Connection": "keep-alive", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>", "Content-Length": "151"}, "method": "POST", "uri": "https://api.github.com/repos/github3py/fork_this/issues"}, "response": {"body": {"encoding": "utf-8", "string": "{\"url\":\"https://api.github.com/repos/github3py/fork_this/issues/13\",\"repository_url\":\"https://api.github.com/repos/github3py/fork_this\",\"labels_url\":\"https://api.github.com/repos/github3py/fork_this/issues/13/labels{/name}\",\"comments_url\":\"https://api.github.com/repos/github3py/fork_this/issues/13/comments\",\"events_url\":\"https://api.github.com/repos/github3py/fork_this/issues/13/events\",\"html_url\":\"https://github.com/github3py/fork_this/issues/13\",\"id\":283352004,\"number\":13,\"title\":\"Test issue creation assignees\",\"user\":{\"login\":\"omgjlk\",\"id\":523287,\"avatar_url\":\"https://avatars2.githubusercontent.com/u/523287?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/omgjlk\",\"html_url\":\"https://github.com/omgjlk\",\"followers_url\":\"https://api.github.com/users/omgjlk/followers\",\"following_url\":\"https://api.github.com/users/omgjlk/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/omgjlk/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/omgjlk/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/omgjlk/subscriptions\",\"organizations_url\":\"https://api.github.com/users/omgjlk/orgs\",\"repos_url\":\"https://api.github.com/users/omgjlk/repos\",\"events_url\":\"https://api.github.com/users/omgjlk/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/omgjlk/received_events\",\"type\":\"User\",\"site_admin\":false},\"labels\":[],\"state\":\"open\",\"locked\":false,\"assignee\":{\"login\":\"omgjlk\",\"id\":523287,\"avatar_url\":\"https://avatars2.githubusercontent.com/u/523287?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/omgjlk\",\"html_url\":\"https://github.com/omgjlk\",\"followers_url\":\"https://api.github.com/users/omgjlk/followers\",\"following_url\":\"https://api.github.com/users/omgjlk/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/omgjlk/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/omgjlk/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/omgjlk/subscriptions\",\"organizations_url\":\"https://api.github.com/users/omgjlk/orgs\",\"repos_url\":\"https://api.github.com/users/omgjlk/repos\",\"events_url\":\"https://api.github.com/users/omgjlk/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/omgjlk/received_events\",\"type\":\"User\",\"site_admin\":false},\"assignees\":[{\"login\":\"omgjlk\",\"id\":523287,\"avatar_url\":\"https://avatars2.githubusercontent.com/u/523287?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/omgjlk\",\"html_url\":\"https://github.com/omgjlk\",\"followers_url\":\"https://api.github.com/users/omgjlk/followers\",\"following_url\":\"https://api.github.com/users/omgjlk/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/omgjlk/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/omgjlk/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/omgjlk/subscriptions\",\"organizations_url\":\"https://api.github.com/users/omgjlk/orgs\",\"repos_url\":\"https://api.github.com/users/omgjlk/repos\",\"events_url\":\"https://api.github.com/users/omgjlk/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/omgjlk/received_events\",\"type\":\"User\",\"site_admin\":false},{\"login\":\"sigmavirus24\",\"id\":240830,\"avatar_url\":\"https://avatars3.githubusercontent.com/u/240830?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/sigmavirus24\",\"html_url\":\"https://github.com/sigmavirus24\",\"followers_url\":\"https://api.github.com/users/sigmavirus24/followers\",\"following_url\":\"https://api.github.com/users/sigmavirus24/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/sigmavirus24/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/sigmavirus24/subscriptions\",\"organizations_url\":\"https://api.github.com/users/sigmavirus24/orgs\",\"repos_url\":\"https://api.github.com/users/sigmavirus24/repos\",\"events_url\":\"https://api.github.com/users/sigmavirus24/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/sigmavirus24/received_events\",\"type\":\"User\",\"site_admin\":false}],\"milestone\":null,\"comments\":0,\"created_at\":\"2017-12-19T20:00:22Z\",\"updated_at\":\"2017-12-19T20:00:22Z\",\"closed_at\":null,\"author_association\":\"OWNER\",\"body_html\":\"<p>Let's see how well this works with Betamax</p>\",\"body_text\":\"Let's see how well this works with Betamax\",\"body\":\"Let's see how well this works with Betamax\",\"closed_by\":null}"}, "headers": {"Date": "Tue, 19 Dec 2017 20:00:22 GMT", "Content-Type": "application/json; charset=utf-8", "Content-Length": "4395", "Server": "GitHub.com", "Status": "201 Created", "X-RateLimit-Limit": "5000", "X-RateLimit-Remaining": "4994", "X-RateLimit-Reset": "1513715907", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "ETag": "\"a70cf8c4d841713732253be31c4ed52f\"", "X-OAuth-Scopes": "admin:org, delete_repo, repo", "X-Accepted-OAuth-Scopes": "", "Location": "https://api.github.com/repos/github3py/fork_this/issues/13", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "Access-Control-Expose-Headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Access-Control-Allow-Origin": "*", "Content-Security-Policy": "default-src 'none'", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "deny", "X-XSS-Protection": "1; mode=block", "X-Runtime-rack": "0.457169", "X-GitHub-Request-Id": "E623:5EA3:191DC1:22A3C0:5A396FD6"}, "status": {"code": 201, "message": "Created"}, "url": "https://api.github.com/repos/github3py/fork_this/issues"}, "recorded_at": "2017-12-19T20:00:22"}], "recorded_with": "betamax/0.8.0"}
\ No newline at end of file
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Loading
Loading
@@ -62,7 +62,7 @@ class TestGitHub(IntegrationHelper):
 
def test_create_issue(self):
"""Test the ability of a GitHub instance to create a new issue."""
self.token_login()
self.auto_login()
cassette_name = self.cassette_name('create_issue')
with self.recorder.use_cassette(cassette_name):
i = self.gh.create_issue(
Loading
Loading
@@ -74,6 +74,25 @@ class TestGitHub(IntegrationHelper):
assert i.title == 'Test issue creation'
assert i.body == "Let's see how well this works with Betamax"
 
def test_create_issue_multiple_assignees(self):
"""
Test the ability of a GitHub instance to create a new issue.
with multipole assignees
"""
self.auto_login()
cassette_name = self.cassette_name('create_issue_assignees')
with self.recorder.use_cassette(cassette_name):
i = self.gh.create_issue(
'github3py', 'fork_this', 'Test issue creation assignees',
"Let's see how well this works with Betamax",
assignees=['omgjlk', 'sigmavirus24']
)
assert isinstance(i, github3.issues.Issue)
assert i.title == 'Test issue creation assignees'
assert i.body == "Let's see how well this works with Betamax"
assert ['omgjlk', 'sigmavirus24'] == [a.login for a in i.assignees]
def test_create_key(self):
"""Test the ability to create a key and delete it."""
self.basic_login()
Loading
Loading
Loading
Loading
@@ -430,7 +430,7 @@ class TestRepository(helper.IntegrationHelper):
body='Migrated create_pull to tests/unit'
)
 
assert isinstance(pull_request, github3.pulls.PullRequest)
assert isinstance(pull_request, github3.pulls.ShortPullRequest)
 
def test_create_pull_from_issue(self):
"""
Loading
Loading
@@ -447,7 +447,7 @@ class TestRepository(helper.IntegrationHelper):
head='itsmemattchung:tests/migrate-repos',
)
 
assert isinstance(pull_request, github3.pulls.PullRequest)
assert isinstance(pull_request, github3.pulls.ShortPullRequest)
 
def test_create_release(self):
"""Test the ability to create a release on a repository."""
Loading
Loading
@@ -934,7 +934,7 @@ class TestRepository(helper.IntegrationHelper):
 
assert len(pulls) > 0
for pull in pulls:
assert isinstance(pull, github3.pulls.PullRequest)
assert isinstance(pull, github3.pulls.ShortPullRequest)
 
def test_pull_requests_accepts_sort_and_direction(self):
"""Test that pull_requests now takes a sort parameter."""
Loading
Loading
This diff is collapsed.
Loading
Loading
@@ -96,7 +96,7 @@ class TestPayLoadHandlers(TestCase):
pull_request = {'pull_request': get_pull_request_example_data()}
github3.events._pullreqev(pull_request, None)
assert isinstance(pull_request['pull_request'],
github3.pulls.PullRequest)
github3.events.EventPullRequest)
 
def test_pullreqcomment(self):
"""Show that the event type is a PullRequestReviewCommentEvent."""
Loading
Loading
Loading
Loading
@@ -147,9 +147,9 @@ class TestPullRequest(helper.UnitHelper):
def test_attributes(self):
"""Show that we extract attributes correctly."""
assert self.instance.merge_commit_sha == \
'e5bd3914e2e596debea16f433f57875b5b90bcd6'
'f13731c44acf96f2e5d6f0080f54e09215e36248'
assert not self.instance.merged
assert self.instance.mergeable
assert not self.instance.mergeable
 
 
class TestPullRequestRequiresAuthentication(
Loading
Loading