[ARVADOS] updated: 514cd364c3cb27b633c1368cd06d6a54927c98a8
Git user
git at public.curoverse.com
Thu Mar 23 00:17:02 EDT 2017
Summary of changes:
sdk/python/tests/test_cache.py | 10 ++++++++++
1 file changed, 10 insertions(+)
via 514cd364c3cb27b633c1368cd06d6a54927c98a8 (commit)
from 366780077def317818759e999263577d8a9f5064 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 514cd364c3cb27b633c1368cd06d6a54927c98a8
Author: Tom Clegg <tom at curoverse.com>
Date: Thu Mar 23 00:16:26 2017 -0400
10669: Test that SafeHTTPCache is actually used.
diff --git a/sdk/python/tests/test_cache.py b/sdk/python/tests/test_cache.py
index 9697e47..6a4d4cf 100644
--- a/sdk/python/tests/test_cache.py
+++ b/sdk/python/tests/test_cache.py
@@ -1,4 +1,5 @@
import md5
+import mock
import shutil
import random
import tempfile
@@ -6,6 +7,7 @@ import threading
import unittest
import arvados.cache
+import run_test_server
def _random(n):
@@ -60,3 +62,11 @@ class CacheTest(unittest.TestCase):
for t in threads:
t.join()
self.assertTrue(t.ok)
+
+class CacheIntegrationTest(run_test_server.TestCaseWithServers):
+ MAIN_SERVER = {}
+
+ def test_cache_used_by_default_client(self):
+ with mock.patch('arvados.cache.SafeHTTPCache.get') as getter:
+ arvados.api('v1')._rootDesc.get('foobar')
+ getter.assert_called()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list