Esempio n. 1
0
 def setUp(self):
     bootstrap.wipe_database()
     project_reg = plugin.ProjectRegistrationProvider.get()
     c.user = bootstrap.create_user('Test User')
     neighborhood = M.Neighborhood(name='Projects', url_prefix='/p/',
                                   features=dict(private_projects=False,
                                                 max_projects=None,
                                                 css='none',
                                                 google_analytics=False))
     project_reg.register_neighborhood_project(neighborhood, [c.user])
     c.project = neighborhood.register_project('test', c.user)
     c.project.install_app('Feedback', 'feedback')
     ThreadLocalORMSession.flush_all()
     h.set_context('test', 'feedback', neighborhood='Projects')
Esempio n. 2
0
 def setUp(self):
     bootstrap.wipe_database()
     project_reg = plugin.ProjectRegistrationProvider.get()
     c.user = bootstrap.create_user('Test User')
     neighborhood = M.Neighborhood(name='Projects', url_prefix='/p/',
                                   features=dict(private_projects=False,
                                                 max_projects=None,
                                                 css='none',
                                                 google_analytics=False))
     project_reg.register_neighborhood_project(neighborhood, [c.user])
     c.project = neighborhood.register_project('test', c.user)
     c.project.install_app('Blog', 'blog')
     ThreadLocalORMSession.flush_all()
     h.set_context('test', 'blog', neighborhood='Projects')
Esempio n. 3
0
 def setUp(self):
     bootstrap.wipe_database()
     project_reg = plugin.ProjectRegistrationProvider.get()
     c.user = bootstrap.create_user('Test User')
     neighborhood = M.Neighborhood(name='Projects', url_prefix='/p/',
                                   features=dict(private_projects=False,
                                                 max_projects=None,
                                                 css='none',
                                                 google_analytics=False))
     project_reg.register_neighborhood_project(neighborhood, [c.user])
     c.project = neighborhood.register_project('test', c.user)
     c.project.install_app('Tickets', 'bugs')
     ThreadLocalORMSession.flush_all()
     h.set_context('test', 'bugs', neighborhood='Projects')
     REGISTRY.register(request, Request.blank('/'))  # borrowed from setup_unit_test but we need just this
Esempio n. 4
0
 def setUp(self):
     bootstrap.wipe_database()
     project_reg = plugin.ProjectRegistrationProvider.get()
     c.user = bootstrap.create_user('Test User')
     neighborhood = M.Neighborhood(name='Projects',
                                   url_prefix='/p/',
                                   features=dict(private_projects=False,
                                                 max_projects=None,
                                                 css='none',
                                                 google_analytics=False))
     project_reg.register_neighborhood_project(neighborhood, [c.user])
     c.project = neighborhood.register_project('test', c.user)
     c.project.install_app('Tickets', 'bugs')
     ThreadLocalORMSession.flush_all()
     h.set_context('test', 'bugs', neighborhood='Projects')
     REGISTRY.register(request, Request.blank(
         '/'))  # borrowed from setup_unit_test but we need just this