* Consolidating a considerable amount of duplicate (for loading a Pecan app and its environment) into `pecan.core.load_app`. * Removing support for module-based configurations. * Wrote a simple utility for loading a test environment, `pecan.testing.load_test_app`.
6 lines
120 B
Python
6 lines
120 B
Python
from pecan import load_app
|
|
from webtest import TestApp
|
|
|
|
def load_test_app(config):
|
|
return TestApp(load_app(config))
|