[geneagrapher] 219/226: Update test to use large cache expiration timeout.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:11:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit 4f36567c749cef079beb9ddec760f98e7cf8aed3
Author: David Alber <alber.david at gmail.com>
Date: Sat Jan 7 20:34:21 2012 -0800
Update test to use large cache expiration timeout.
A test meant to verify the behavior of the Geneagrapher when using
CacheGrabber was failing because the cache entry had gone stale (it
happens after one week by default). To keep the test from starting
to fail after one week, this commit modifies the test to use a
very long cache item expiration interval, effectively ensuring the
cache item will not go stale.
---
tests/geneagrapher/test_geneagrapher_methods.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/geneagrapher/test_geneagrapher_methods.py b/tests/geneagrapher/test_geneagrapher_methods.py
index 56aa5bb..6c31d84 100644
--- a/tests/geneagrapher/test_geneagrapher_methods.py
+++ b/tests/geneagrapher/test_geneagrapher_methods.py
@@ -119,7 +119,9 @@ geneagrapher: error: too few arguments
sys.stdout = stdout_intercept
cache_fname = LocalDataGrabber.data_file(
'geneagrapher_verbose_cache_grabber_test')
- self.ggrapher.build_graph_complete(CacheGrabber, filename=cache_fname)
+ expiration = 1000000000000000
+ self.ggrapher.build_graph_complete(CacheGrabber, filename=cache_fname,
+ expiration_interval=expiration)
sys.stdout = stdout
self.assertEqual(stdout_intercept.getvalue().decode('utf-8'),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list