Test Client
HTTP Test Client
Test client allows you to make requests to your routes. It uses httpx.
test_client(base_url="http://testserver")
base_url
- example hostname for testing.
app = Yaat()
@app.route("/")
def index(request):
...
test_client = app.test_client()
response = await client.get("/")