get summary instead of description from em:description
This commit is contained in:
Родитель
017ab9aa5f
Коммит
dc3b6ea1d7
|
@ -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(),
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче