OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
keyring
/
tests
/
backends
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 06:58:01 AM
rwxr-xr-x
📄
__init__.py
0 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📁
__pycache__
-
05/09/2024 06:58:02 AM
rwxr-xr-x
📄
test_OS_X.py
397 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
test_SecretService.py
997 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
test_Windows.py
904 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
test_kwallet.py
2.96 KB
01/07/2018 08:43:04 PM
rw-r--r--
Editing: test_Windows.py
Close
from __future__ import print_function import sys import unittest import pytest import keyring.backends.Windows from ..test_backend import BackendBasicTests @unittest.skipUnless(keyring.backends.Windows.WinVaultKeyring.viable, "Needs Windows") class WinVaultKeyringTestCase(BackendBasicTests, unittest.TestCase): def tearDown(self): # clean up any credentials created for cred in self.credentials_created: try: self.keyring.delete_password(*cred) except Exception as e: print(e, file=sys.stderr) def init_keyring(self): return keyring.backends.Windows.WinVaultKeyring() @pytest.mark.skipif('sys.platform != "win32"') def test_winvault_always_viable(): """ The WinVault backend should always be viable on Windows. """ assert keyring.backends.Windows.WinVaultKeyring.viable