From cbd515c4301decd78dbd0ce6656e3ee7ad7df7f2 Mon Sep 17 00:00:00 2001 From: Nico Andrade Date: Fri, 2 Oct 2020 19:12:31 -0400 Subject: [PATCH] Update test documentation --- tests/test_mongo_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_mongo_core.py b/tests/test_mongo_core.py index bfff4e5..8cb99ca 100644 --- a/tests/test_mongo_core.py +++ b/tests/test_mongo_core.py @@ -153,6 +153,7 @@ def _calls_wait_for_calc_timeout_mongo_fast(res_queue): def test_mongo_wait_for_calc_timeout_ok(): + """ Testing calls that avoid timeouts store the values in cache. """ _wait_for_calc_timeout_mongo_fast.clear_cache() val1 = _wait_for_calc_timeout_mongo_fast(1, 2) val2 = _wait_for_calc_timeout_mongo_fast(1, 2) @@ -187,7 +188,7 @@ def _calls_wait_for_calc_timeout_mongo_slow(res_queue): def test_mongo_wait_for_calc_timeout_slow(): - """Testing for calls that time out are performed again.""" + """Testing for calls timing out to be performed twice when needed.""" _wait_for_calc_timeout_mongo_slow.clear_cache() res_queue = queue.Queue() thread1 = threading.Thread(