create TestHTTPClient that uses werkzueg test client, tests are passing

This commit is contained in:
2021-08-16 02:07:36 +02:00
committed by 3wc
parent 16ff1b5b26
commit 5f9fc1adcf
9 changed files with 130 additions and 39 deletions
+2 -1
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))