def setup_noDB():
    base_config = TestConfig(folder = 'dispatch', 
                             values = {'use_sqlalchemy': False,
                             'ignore_parameters': ["ignore", "ignore_me"]
                             }
                             )
    return app_from_config(base_config) 
def setup_noDB():
    base_config = TestConfig(folder='dispatch',
                             values={
                                 'use_sqlalchemy': False,
                                 'ignore_parameters': ["ignore", "ignore_me"],
                             })
    return app_from_config(base_config)
def setup_noDB():
    base_config = TestConfig(folder='rendering',
                             values={
                                 'use_sqlalchemy': False,
                                 'pylons.helpers': Bunch(),
                                 'use_legacy_renderer': False,
                                 'use_dotted_templatenames': False,
                             })
    return app_from_config(base_config)
def setup_noDB():
    base_config = TestConfig(folder = 'rendering',
                     values = {'use_sqlalchemy': False,
                               'pylons.helpers': Bunch(),
                               # we want to test the new renderer functions
                               'use_legacy_renderer': False,
                               # in this test we want dotted names support
                               'use_dotted_templatenames': True,
                               }
                             )
    return app_from_config(base_config)
def setup_noDB():
    base_config = TestConfig(folder = 'rendering',
                             values = {'use_sqlalchemy': False,
                                       'pylons.helpers': Bunch(),
                                       'use_legacy_renderer': False,
                                       # this is specific to mako
                                       # to make sure inheritance works
                                       'use_dotted_templatenames': False,
                                       }
                             )
    return app_from_config(base_config)
Example #6
0
def setup_noDB():
    base_config = TestConfig(
        folder='rendering',
        values={
            'use_sqlalchemy': False,
            'pylons.helpers': Bunch(),
            'use_legacy_renderer': False,
            # this is specific to mako
            # to make sure inheritance works
            'use_dotted_templatenames': False,
        })
    return app_from_config(base_config)
def setup_noDB():

    base_config = TestConfig(folder = 'rendering', 
                     values = {'use_sqlalchemy': False,
                               'pylons.helpers': Bunch(),
                               # we want to test the new renderer functions
                               'use_legacy_renderer': False,
                               # in this test we want dotted names support
                               'use_dotted_templatenames': False,
                               }
                             )
    return app_from_config(base_config)
def test_template_override():
#    app = setup_noDB()
    base_config = TestConfig(folder = 'rendering',
                             values = {'use_sqlalchemy': False,
                                       'pylons.helpers': Bunch(),
                                       'use_legacy_renderer': False,
                                       # this is specific to mako
                                       # to make sure inheritance works
                                       'use_dotted_templatenames': True,
                                       }
                             )
    app = app_from_config(base_config)
    r =app.get('/template_override')
    assert "Not overridden" in r, r
    r = app.get('/template_override', params=dict(override=True))
    assert "This is overridden." in r, r
    # now invoke the controller again without override,
    # it should yield the old result
    r = app.get('/template_override')
    assert "Not overridden" in r, r
def setup_noDB():
    base_config = TestConfig(folder='rendering',
            values={
                'use_sqlalchemy': False
            })
    return app_from_config(base_config)
Example #10
0
 def __init__(self, *args, **kargs):
     self.app = app_from_config(base_config)
Example #11
0
 def __init__(self, *args, **kargs):
     self.app = app_from_config(base_config)
def setup_noDB():
    base_config = TestConfig(folder='rendering',
            values={
                'use_sqlalchemy': False
            })
    return app_from_config(base_config)