get summary instead of description from em:description

This commit is contained in:
Jeff Balogh 2010-12-21 20:41:10 -08:00
Родитель 017ab9aa5f
Коммит dc3b6ea1d7
3 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -728,7 +728,8 @@ class TestAddonFromUpload(files.tests.UploadTest):
eq_(addon.type, amo.ADDON_EXTENSION)
eq_(addon.status, amo.STATUS_NULL)
eq_(addon.homepage, 'http://homepage.com')
eq_(addon.description, 'xpi description')
eq_(addon.summary, 'xpi description')
eq_(addon.description, None)
eq_(addon.slug, 'xpi-name')
def test_xpi_version(self):

Просмотреть файл

@ -156,7 +156,7 @@ class TestParseXpi(test_utils.TestCase):
# Everything but the apps
exp = {'guid': 'guid@xpi',
'name': 'xpi name',
'description': 'xpi description',
'summary': 'xpi description',
'version': '0.1',
'homepage': 'http://homepage.com',
'type': 1}
@ -235,7 +235,7 @@ class TestParseAlternateXpi(test_utils.TestCase):
# Everything but the apps.
exp = {'guid': '{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}',
'name': 'Delicious Bookmarks',
'description': 'Access your bookmarks wherever you go and keep '
'summary': 'Access your bookmarks wherever you go and keep '
'them organized no matter how many you have.',
'homepage': 'http://delicious.com',
'type': amo.ADDON_EXTENSION,

Просмотреть файл

@ -40,7 +40,7 @@ class Extractor(object):
'name': self.find('name'),
'version': self.find('version'),
'homepage': self.find('homepageURL'),
'description': self.find('description'),
'summary': self.find('description'),
'no_restart': self.find('bootstrap') == 'true',
'apps': self.apps(),
}