Skip to content

Commit 8c0aad8

Browse files
committed
0.3.2: Fix emoji tests
1 parent 79d85f3 commit 8c0aad8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

emojipedia/emoji.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def platforms(self):
8585
platform = {
8686
'title': vendor_title.text
8787
}
88-
89-
if vendor_img:
88+
if vendor_img and vendor_img.find('img'):
9089
platform['platform_image'] = vendor_img.find('img')['src']
9190
self._platforms.append(platform)
9291
return self._platforms

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(name='Emojipedia',
66
packages=['emojipedia'],
7-
version='0.3.1',
7+
version='0.3.2',
88
description='Emoji data from Emojipedia',
99
author='Benjamin Congdon',
1010
author_email='[email protected]',

test_emojipedia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_emoji_codepoints():
2929

3030

3131
def test_platforms():
32-
wink = Emojipedia.search('winking-face')
32+
wink = Emojipedia.search('bug')
3333
correct = ['LG', 'Google', 'HTC', 'Apple', 'Samsung', 'Twitter',
3434
'Mozilla', 'Emoji One', 'Facebook', 'emojidex', 'Messenger',
3535
'Microsoft']

0 commit comments

Comments
 (0)