def add_target_catchall(self, **kwargs): add_catchall( configurator=self.config, api_tree=self.api_tree, catchall=self.target, **kwargs )
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('/')
def add_target_catchall(self, **kwargs): add_catchall(configurator=self.config, api_tree=self.api_tree, catchall=self.target, **kwargs)