File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,10 @@ def emojis(self):
355
355
}
356
356
"""
357
357
url = self ._build_url ('emojis' )
358
- return self ._json (self ._get (url ), 200 )
358
+ data = self ._json (self ._get (url ), 200 )
359
+ del data ['ETag' ]
360
+ del data ['Last-Modified' ]
361
+ return data
359
362
360
363
@requires_basic_auth
361
364
def feeds (self ):
Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ def test_emojis(self):
95
95
# Asserts that it's a string and looks ilke the URLs we expect to see
96
96
assert emojis ['+1' ].startswith ('https://github' )
97
97
98
+ def test_emojis_etag (self ):
99
+ """Test the ability to retrieve from /emojis."""
100
+ cassette_name = self .cassette_name ('emojis' )
101
+ with self .recorder .use_cassette (cassette_name ):
102
+ emojis = self .gh .emojis ()
103
+
104
+ assert 'ETag' not in emojis
105
+ assert 'Last-Modified' not in emojis
106
+
98
107
def test_feeds (self ):
99
108
"""Test the ability to retrieve a user's timelime URLs."""
100
109
self .basic_login ()
You can’t perform that action at this time.
0 commit comments