Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
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())
Beispiel #4
0
 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)
Beispiel #5
0
 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()
Beispiel #6
0
 def setUp(self):
     super(TestListContentType, self).setUp()
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self, category=self.category)
Beispiel #7
0
 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)