def test_config_load_extension(self): from empty import Empty from empty import EmptyConfig config = EmptyConfig(EXTENSIONS=['extensions.ext']) app = Empty('myapp') app.configure(config) app.setup() ext = app.extensions['ext'] self.assertTrue('test' in ext.options)
def test_config_load_extension(self): from empty import Empty from empty import EmptyConfig config = EmptyConfig(EXTENSIONS=[ 'extensions.ext' ]) app = Empty('myapp') app.configure(config) app.setup() ext = app.extensions['ext'] self.assertTrue('test' in ext.options)
def create_app(self): from empty import Empty app = Empty('myapp') app.setup() return app