Skip to content

Commit a794b54

Browse files
committed
Add github3.emojis
1 parent bb113e3 commit a794b54

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

github3/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def login(username=None, password=None, token=None, url=None):
5555
return g
5656

5757

58+
def emojis():
59+
return gh.emojis()
60+
emojis.__doc__ = gh.emojis.__doc__
61+
62+
5863
def gist(id_num):
5964
"""Retrieve the gist identified by ``id_num``.
6065

tests/integration/test_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ class TestAPI(IntegrationHelper):
77
def get_client(self):
88
return github3.gh
99

10+
def test_emojis(self):
11+
"""Test the ability to use the /emojis endpoint"""
12+
cassette_name = self.cassette_name('emojis', cls='GitHub')
13+
with self.recorder.use_cassette(cassette_name):
14+
emojis = self.gh.emojis()
15+
16+
assert emojis['+1'] is not None
17+
1018
def test_search_code(self):
1119
"""Test the ability to use the code search endpoint"""
1220
cassette_name = self.cassette_name('search_code',

0 commit comments

Comments
 (0)