Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
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()
Ejemplo n.º 5
0
    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)
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
def includeme(config):
    """Full includeme."""
    routes_from_package(config,
                        'tests.routes_definitions.routing_to_include_1')
Ejemplo n.º 8
0
 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')
Ejemplo n.º 9
0
 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')
Ejemplo n.º 10
0
 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')
Ejemplo n.º 12
0
 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')