示例#1
0
            def test_build_endpoints_should_be_called(self, api_spec,
                                                      mock_build_endpoints,
                                                      mock_build_requests):
                APITreeFactory(api_spec=api_spec)

                assert mock_build_endpoints.called_once
                assert not mock_build_requests.called
示例#2
0
 def tree(self):
     return APITreeFactory(with_endpoints_minimal=True)
示例#3
0
 def api_tree(self):
     return APITreeFactory(with_endpoints_get_with_header_body_params=True)
示例#4
0
 def api_tree(self):
     return APITreeFactory(method_not_allowed=True)
示例#5
0
 def api_tree(self):
     return APITreeFactory(without_endpoints_minimal=True)
示例#6
0
 def api_tree(self):
     return APITreeFactory(with_endpoints_with_root_requests=True)