R

Ravina • 3.96K Points
Extraordinary

Q. Which method is used in FastAPI to test endpoints without an external client?

  • (A) fastapi.Client()
  • (B) APITestClient
  • (C) TestClient
  • (D) HttpTester
  • Correct Answer - Option(C)
  • Views: 143
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`TestClient` from `fastapi.testclient` is used for testing endpoints.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.