本文整理汇总了Python中addons_site.AddonsHomePage.results方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsHomePage.results方法的具体用法?Python AddonsHomePage.results怎么用?Python AddonsHomePage.results使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类addons_site.AddonsHomePage
的用法示例。
在下文中一共展示了AddonsHomePage.results方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_sorting_by_updated_date
# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import results [as 别名]
def test_sorting_by_updated_date(self, testsetup):
""" Litmus 17345
https://litmus.mozilla.org/show_test.cgi?id=17345 """
amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('updated')
Assert.true('sort=updated' in amo_search_page.get_url_current_page())
Assert.is_sorted_descending([i.updated_date for i in amo_search_page.results()])
示例2: test_sorting_by_users_number
# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import results [as 别名]
def test_sorting_by_users_number(self, testsetup):
"""Litmus 24867"""
amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('users')
Assert.true('sort=users' in amo_search_page.get_url_current_page())
Assert.is_sorted_descending([i.users for i in amo_search_page.results()])
示例3: test_sorting_by_downloads
# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import results [as 别名]
def test_sorting_by_downloads(self, testsetup):
""" Litmus 17342
https://litmus.mozilla.org/show_test.cgi?id=17342 """
amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('downloads')
Assert.true('sort=weeklydownloads' in amo_search_page.get_url_current_page())
Assert.is_sorted_descending([i.downloads for i in amo_search_page.results()])