create TestHTTPClient that uses werkzueg test client, tests are passing

This commit is contained in:
2021-07-31 15:28:42 -05:00
committed by 3wc
parent 16ff1b5b26
commit 5f9fc1adcf
9 changed files with 130 additions and 39 deletions

3
app.py
View File

@ -1,4 +1,5 @@
from capsulflask import create_app
from capsulflask.http_client import MyHTTPClient
app = create_app()
app = create_app(lambda timeout_seconds: MyHTTPClient(timeout_seconds=timeout_seconds))