def test_by_hand_only(clean_config): """Run includeme by hand.""" config = clean_config config.commit() from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing') config.commit()
def test_includeme_and_by_hand(simplerouting_config): """config.include and by hand in app.""" config = simplerouting_config config.commit() # pylint:disable=import-outside-toplevel from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing_moduled') config.commit()
def test_by_hand_only(clean_config): """Run includeme by hand.""" config = clean_config config.commit() # pylint:disable=import-outside-toplevel from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing') config.commit()
def test_includeme_and_by_hand(simplerouting_config): """config.include and by hand in app.""" config = simplerouting_config config.commit() from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing_moduled') config.commit()
def test_by_hand_only(self): '''run includeme by hand''' from tzf.pyramid_routing import routes_from_package try: routes_from_package(self.config, 'tests.routing') self.app = TestApp(self.config.make_wsgi_app()) except ConfigurationConflictError as e: self.fail(e)
def test_includeme_and_by_hand(self): '''config.include and by hand in app''' from pyramid.config import Configurator # Initialise the ``Configurator`` and setup a session factory. self.config = Configurator(settings={'routing_package': 'tests.routing'}) try: self.config.include('tzf.pyramid_routing') from tzf.pyramid_routing import routes_from_package routes_from_package(self.config, 'tests.routing_moduled') self.app = TestApp(self.config.make_wsgi_app()) except ConfigurationConflictError as e: self.fail(e)
def includeme(config): """Full includeme.""" routes_from_package(config, 'tests.routes_definitions.routing_to_include_1')
def includeme_test(config): """Configure routes in test.""" # pylint:disable=import-outside-toplevel from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing_moduled')
def includeme_test(config): """Method for testing includeme.""" from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing_moduled')
def includeme_test(config): ''' Method for testing includeme ''' from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routing_moduled')
def includeme(config): ''' Full includeme ''' routes_from_package(config, 'tests.routing_to_include_2')
def includeme_test(config): """Configure routes in test.""" from tzf.pyramid_routing import routes_from_package routes_from_package(config, 'tests.routes_definitions.routing_moduled')