Beispiel #1
0
 def setUp(self):
     settings = {
         'bimt.app_title': 'BIMT',
     }
     self.config = testing.setUp(settings=settings)
     initTestingDB(auditlog_types=True, groups=True, users=True)
     configure(self.config)
Beispiel #2
0
 def setUp(self):
     settings = {
         'bimt.encryption_aes_16b_key': 'abcdabcdabcdabcd',
     }
     self.config = testing.setUp(settings=settings)
     initTestingDB(groups=True, users=True, auditlog_types=True)
     configure(self.config)
Beispiel #3
0
    def setUp(self):
        self.config = testing.setUp(request=testing.DummyRequest())
        configure(self.config)
        self.request = get_current_request()

        from pyramid_layout.layout import LayoutManager

        self.request.layout_manager = LayoutManager('context', 'requestr')
Beispiel #4
0
    def setUp(self):
        from pyramid_bimt.tests.test_group_model import _make_group
        initTestingDB(groups=True, users=True, auditlog_types=True)
        self.config = testing.setUp(request=testing.DummyRequest())
        configure(self.config)
        self.request = get_current_request()
        self.request.user = User.by_id(1)
        self.group1 = _make_group(name='group1', product_id='1')
        self.group2 = _make_group(name='group2', product_id='2')
        self.request.user.groups = [self.group1, ]

        from pyramid_layout.layout import LayoutManager

        self.request.layout_manager = LayoutManager('context', 'requestr')
Beispiel #5
0
 def setUp(self):
     settings = {
         'bimt.app_title': 'BIMT',
         'bimt.clickbank_secret_key': 'secret',
         'bimt.encryption_aes_16b_key': 'abcdabcdabcdabcd',
     }
     self.config = testing.setUp(settings=settings)
     self.config.include('pyramid_mailer.testing')
     initTestingDB(auditlog_types=True, groups=True, mailings=True)
     _make_ipn_group()
     configure(self.config)
     app = self.config.make_wsgi_app()
     self.testapp = webtest.TestApp(app)
     self.mailer = get_mailer(testing.DummyRequest())
Beispiel #6
0
 def setUp(self):
     handler.clear()
     settings = {
         'bimt.app_title': 'BIMT',
     }
     self.config = testing.setUp(settings=settings)
     initTestingDB(
         auditlog_types=True,
         auditlog_entries=True,
         groups=True,
         users=True,
     )
     configure(self.config)
     self.request = testing.DummyRequest(user=mock.Mock())
Beispiel #7
0
 def setUp(self):
     settings = {
         'bimt.app_title': 'BIMT',
     }
     self.config = testing.setUp(settings=settings)
     initTestingDB(
         auditlog_types=True,
         auditlog_entries=True,
         groups=True,
         users=True,
     )
     configure(self.config)
     self.request = testing.DummyRequest(user=mock.Mock())
     app = self.config.make_wsgi_app()
     self.testapp = webtest.TestApp(app)
Beispiel #8
0
 def setUp(self):
     settings = {
         'bimt.app_title': 'BIMT',
         'bimt.disabled_user_redirect_path': '/settings/',
         'mail.default_sender': 'test_sender',
     }
     self.config = testing.setUp(settings=settings)
     initTestingDB(auditlog_types=True,
                   groups=True,
                   users=True,
                   mailings=True)
     configure(self.config)
     self.request = testing.DummyRequest()
     add_home_view(self.config)
     app = self.config.make_wsgi_app()
     self.testapp = webtest.TestApp(app)
Beispiel #9
0
 def setUp(self):
     self.config = testing.setUp()
     from pyramid_bimt import configure
     configure(self.config)
Beispiel #10
0
 def setUp(self):
     settings = {
         'bimt.app_title': 'BIMT',
     }
     self.config = testing.setUp(settings=settings)
     configure(self.config)
Beispiel #11
0
 def setUp(self):
     self.config = testing.setUp()
     configure(self.config)