Example #1
0
    def setUp(self):
        super(TestGetPage, self).setUp()
        template_loader.templates = {
            'widgets.widget/widget.html': '',
            'testwidgets.testwidget/widget-a/widget.html' : '',
            'testwidgets.testwidget/widget.html' : '',
        }
        create_filled_default_page(self)

        self.user = User.objects.create()
        self.anonymous_user = AnonymousUser()
        self.default_page = Page.objects.get_for_id(settings.DEFAULT_PAGE_ID)
Example #2
0
    def setUp(self):
        super(TestGetPage, self).setUp()
        template_loader.templates = {
            'widgets.widget/widget.html': '',
            'testwidgets.testwidget/widget-a/widget.html': '',
            'testwidgets.testwidget/widget.html': '',
        }
        create_filled_default_page(self)

        self.user = User.objects.create()
        self.anonymous_user = AnonymousUser()
        self.default_page = Page.objects.get_for_id(settings.DEFAULT_PAGE_ID)
Example #3
0
 def setUp(self):
     super(TestViewAddWidget, self).setUp()
     template_loader.templates = {"widgets.widget/widget.html": ""}
     create_filled_default_page(self)
     settings.EXTERNALY_ADDABLE_WIGDETS = {"widgetidentifier": self.widget_a.pk}
Example #4
0
 def setUp(self):
     super(TestViewAddRSSWidget, self).setUp()
     template_loader.templates = {'widgets.widget/widget.html': ''}
     create_filled_default_page(self)
     self.origin_validate_field = rss_forms.validate_feed
     rss_forms.validate_feed = validate_feed
Example #5
0
 def setUp(self):
     super(TestViewAddWidget, self).setUp()
     template_loader.templates = {'widgets.widget/widget.html': ''}
     create_filled_default_page(self)
     settings.EXTERNALY_ADDABLE_WIGDETS = {'widgetidentifier': self.widget_a.pk,}
Example #6
0
 def setUp(self):
     super(TestViewAddRSSWidget, self).setUp()
     template_loader.templates = {'widgets.widget/widget.html': ''}
     create_filled_default_page(self)
     self.origin_validate_field = rss_forms.validate_feed
     rss_forms.validate_feed = validate_feed