aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 20:07:03 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 20:07:03 +0200
commit9fe90554ff1c8c7aea9e1e1e210419a845579edd (patch)
tree9e99cf16f322398aa00b681bbf1e70879883d65c /tests
parent18de421e455ab4b125a6684d703a296562097e6b (diff)
downloadTrader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.tar.gz
Trader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.tar.zst
Trader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.zip
Store duration in http requests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_store.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_store.py b/tests/test_store.py
index 4232fc3..e281adb 100644
--- a/tests/test_store.py
+++ b/tests/test_store.py
@@ -830,6 +830,7 @@ class ReportStoreTest(WebMockTestCase):
830 response = mock.Mock() 830 response = mock.Mock()
831 response.status_code = 200 831 response.status_code = 200
832 response.text = "Hey" 832 response.text = "Hey"
833 response.elapsed.total_seconds.return_value = 120
833 834
834 report_store.log_http_request("method", "url", "body", 835 report_store.log_http_request("method", "url", "body",
835 "headers", response) 836 "headers", response)
@@ -840,6 +841,7 @@ class ReportStoreTest(WebMockTestCase):
840 'body': 'body', 841 'body': 'body',
841 'headers': 'headers', 842 'headers': 'headers',
842 'status': 200, 843 'status': 200,
844 'duration': 120,
843 'response': 'Hey', 845 'response': 'Hey',
844 'response_same_as': None, 846 'response_same_as': None,
845 }) 847 })