Example #1
0
def test_empty_api_tree():
    api_tree = {}

    config = MockConfigurator()
    scan_api_tree(config, api_tree)

    assert not config.routes
Example #2
0
 def do_scan(self):
     self.config = MockConfigurator()
     scan_api_tree(
         configurator=self.config,
         api_tree=self.api_tree,
         root_path=''
         )
Example #3
0
def test_empty_api_tree():
    api_tree = {}
    
    config = MockConfigurator()
    scan_api_tree(config, api_tree)
    
    assert not config.routes
Example #4
0
 def do_scan(self):
     self.config = MockConfigurator()
     scan_api_tree(configurator=self.config,
                   api_tree=self.api_tree,
                   root_path='')
Example #5
0
 def exception_test(self, api_tree):
     configurator = MockConfigurator()
     with pytest.raises(APITreeError):
         scan_api_tree(configurator, api_tree)
Example #6
0
 def exception_test(self, api_tree):
     configurator = MockConfigurator()
     with pytest.raises(APITreeError):
         scan_api_tree(configurator, api_tree)