GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Hotfix typo bug · Diamond192/python-github3@6d1cdde

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pygithub3
    • github.py
    • tests/core
      • test_client.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pygithub3/github.py‎

Copy file name to clipboardExpand all lines: pygithub3/github.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, **config):
1717
from pygithub3.services.users import User
1818
from pygithub3.services.repos import Repo
1919
from pygithub3.services.gists import Gist
20-
from pygithub3.services.events import Events
20+
from pygithub3.services.events import Event
2121
from pygithub3.services.git_data import GitData
2222
from pygithub3.services.pull_requests import PullRequests
2323
from pygithub3.services.orgs import Org
@@ -29,7 +29,7 @@ def __init__(self, **config):
2929
self._pull_requests = PullRequests(**config)
3030
self._orgs = Org(**config)
3131
self._issues = Issue(**config)
32-
self._events = Events(**config)
32+
self._events = Event(**config)
3333

3434
@property
3535
def remaining_requests(self):
Collapse file

‎pygithub3/tests/core/test_client.py‎

Copy file name to clipboardExpand all lines: pygithub3/tests/core/test_client.py
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from pygithub3.core.client import Client
88
from pygithub3.exceptions import NotFound, BadRequest, UnprocessableEntity
9+
from pygithub3.github import Github
910
from pygithub3.tests.utils.base import mock_response
1011
from pygithub3.tests.utils.core import TestCase
1112

@@ -99,3 +100,17 @@ def test_raise_UnprocessableEntity(self, request_method):
99100
request_method.return_value.status_code = 422
100101
request_method.return_value.content = {}
101102
self.assertRaises(UnprocessableEntity, *self.callback)
103+
104+
class TestGithubGlue(TestCase):
105+
106+
def test_init(self):
107+
gh = Github(login='dummy', password='dummy', user='dummy',
108+
repo='dummy')
109+
self.assertTrue(getattr(gh, '_users', False))
110+
self.assertTrue(getattr(gh, '_repos', False))
111+
self.assertTrue(getattr(gh, '_gists', False))
112+
self.assertTrue(getattr(gh, '_git_data', False))
113+
self.assertTrue(getattr(gh, '_pull_requests', False))
114+
self.assertTrue(getattr(gh, '_orgs', False))
115+
self.assertTrue(getattr(gh, '_issues', False))
116+
self.assertTrue(getattr(gh, '_events', False))

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.