Exemple #1
0
class TestEventsService(TestCase):

    def setUp(self):
        self.events = Event()

    def test_LIST(self, request_method):
        request_method.return_value = mock_response_result()
        self.events.list().all()
        self.assertEqual(request_method.call_args[0], ('get', _('events')))
Exemple #2
0
 def __init__(self, **config):
     from pygithub3.services.users import User
     from pygithub3.services.repos import Repo
     from pygithub3.services.gists import Gist
     from pygithub3.services.events import Event
     from pygithub3.services.git_data import GitData
     from pygithub3.services.pull_requests import PullRequests
     from pygithub3.services.orgs import Org
     from pygithub3.services.issues import Issue
     self._users = User(**config)
     self._repos = Repo(**config)
     self._gists = Gist(**config)
     self._git_data = GitData(**config)
     self._pull_requests = PullRequests(**config)
     self._orgs = Org(**config)
     self._issues = Issue(**config)
     self._events = Event(**config)
Exemple #3
0
 def setUp(self):
     self.events = Event()
 def setUp(self):
     self.events = Event()