コード例 #1
0
ファイル: test_related.py プロジェクト: Almad/ella
    def setUp(self):
        super(GetRelatedTestCase, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)

        Publishable.objects.all().update(category=self.publishable.category)

        list_all_placements_in_category_by_hour(self, category=self.publishable.category)
コード例 #2
0
ファイル: test_related.py プロジェクト: whit/ella
    def setUp(self):
        super(GetRelatedTestCase, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)

        Publishable.objects.all().update(category=self.publishable.category)

        list_all_placements_in_category_by_hour(
            self, category=self.publishable.category)
コード例 #3
0
ファイル: test_feeds.py プロジェクト: whit/ella
class TestFeeds(DatabaseTestCase):
    def setUp(self):
        try:
            import feedparser
        except ImportError, e:
            raise self.SkipTest()

        super(TestFeeds, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)
        list_all_placements_in_category_by_hour(self)

        self._feeder = RSSTopCategoryListings('test', HttpRequest())
コード例 #4
0
ファイル: test_hits.py プロジェクト: dedaluz/ella
 def setUp(self):
     super(TestTopObjects, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
コード例 #5
0
ファイル: test_templatetags.py プロジェクト: Almad/ella
 def setUp(self):
     super(TestListingTag, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self)
コード例 #6
0
 def setUp(self):
     super(TestTopObjects, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
コード例 #7
0
ファイル: test_view_helpers.py プロジェクト: whit/ella
 def setUp(self):
     super(TestListContentType, self).setUp()
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self, category=self.category)
     self.list_content_type = ListContentType()
コード例 #8
0
ファイル: test_views.py プロジェクト: Almad/ella
 def setUp(self):
     super(TestListContentType, self).setUp()
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self, category=self.category)
コード例 #9
0
ファイル: test_listing.py プロジェクト: whit/ella
 def setUp(self):
     super(TestListing, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self)