Ejemplo n.º 1
0
 def add_target_catchall(self, **kwargs):
     add_catchall(
         configurator=self.config,
         api_tree=self.api_tree,
         catchall=self.target,
         **kwargs
         )
Ejemplo n.º 2
0
 def test_single_route_multiple_catchalls(self):
     """ When multiple catchalls are added to a single route, they do not
         raise a ConfigurationError. """
     self.api_tree = {'/': self.dummy}
     self.do_scan()
     for item in [self.DummyViewCallable() for i in range(2)]:
         add_catchall(
             configurator=self.config,
             api_tree=self.api_tree,
             catchall=item,
         )
         self.target = item
         self.catchall_endpoint_test('/')
Ejemplo n.º 3
0
 def test_single_route_multiple_catchalls(self):
     """ When multiple catchalls are added to a single route, they do not
         raise a ConfigurationError. """
     self.api_tree = {'/': self.dummy}
     self.do_scan()
     for item in [self.DummyViewCallable() for i in range(2)]:
         add_catchall(
             configurator=self.config,
             api_tree=self.api_tree,
             catchall=item,
             )
         self.target = item
         self.catchall_endpoint_test('/')
Ejemplo n.º 4
0
 def add_target_catchall(self, **kwargs):
     add_catchall(configurator=self.config,
                  api_tree=self.api_tree,
                  catchall=self.target,
                  **kwargs)