[Python-modules-commits] [python-keyring] 03/04: Make secretstorage use session collection when running tests.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Thu Oct 20 20:40:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-keyring.
commit c92ac6fe770a6a6b22a5c17bd766dabc34a2d18f
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Thu Oct 20 23:37:03 2016 +0300
Make secretstorage use session collection when running tests.
Patch-Name: secretstorage_any_collection.diff
---
keyring/tests/backends/test_SecretService.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/keyring/tests/backends/test_SecretService.py b/keyring/tests/backends/test_SecretService.py
index 202b014..ef83280 100644
--- a/keyring/tests/backends/test_SecretService.py
+++ b/keyring/tests/backends/test_SecretService.py
@@ -4,6 +4,11 @@ from ..test_backend import BackendBasicTests
from keyring.backends import SecretService
from .. import util
+if hasattr(SecretService, 'secretstorage'):
+ secretstorage = SecretService.secretstorage
+ secretstorage.get_default_collection = secretstorage.get_any_collection
+ secretstorage.collection.get_default_collection = secretstorage.get_any_collection
+
@unittest.skipUnless(SecretService.Keyring.viable,
"SecretStorage package is needed for SecretServiceKeyring")
class SecretServiceKeyringTestCase(BackendBasicTests, unittest.TestCase):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-keyring.git
More information about the Python-modules-commits
mailing list