X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Ftest_store.py;fp=tests%2Ftest_store.py;h=e281adb3a62d2013d0acd090595263ff843f0461;hb=9fe90554ff1c8c7aea9e1e1e210419a845579edd;hp=4232fc3efa1b70c2dbd30aecc135b2fd86aaa7b1;hpb=18de421e455ab4b125a6684d703a296562097e6b;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git 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): response = mock.Mock() response.status_code = 200 response.text = "Hey" + response.elapsed.total_seconds.return_value = 120 report_store.log_http_request("method", "url", "body", "headers", response) @@ -840,6 +841,7 @@ class ReportStoreTest(WebMockTestCase): 'body': 'body', 'headers': 'headers', 'status': 200, + 'duration': 120, 'response': 'Hey', 'response_same_as': None, })