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
def tree(self): return APITreeFactory(with_endpoints_minimal=True)
def api_tree(self): return APITreeFactory(with_endpoints_get_with_header_body_params=True)
def api_tree(self): return APITreeFactory(method_not_allowed=True)
def api_tree(self): return APITreeFactory(without_endpoints_minimal=True)
def api_tree(self): return APITreeFactory(with_endpoints_with_root_requests=True)