While testing client requests, how get/post by endpoint instead of url?
cllen opened this issue · 2 comments
cllen commented
Hi, I want to do like following, is it possible to do so?
for example:
client = app.test_client()
response = client.post('foo.buleprint.endpoint')
thanks for help!
miguelgrinberg commented
This is more of a Flask question and not related to this tutorial. The answer is no, I don't believe you can pass an endpoint name instead of a URL.
cllen commented
thanks!