mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
Improved keychain tests
This commit is contained in:
parent
bee4c86719
commit
9f6d2284c3
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
|||
import unittest
|
||||
from xattr import xattr, XATTR_NOFOLLOW
|
||||
|
||||
import getpass
|
||||
getpass.getpass = lambda m: 'abc123'
|
||||
|
||||
from . import store
|
||||
from .archiver import Archiver
|
||||
|
||||
|
@ -105,7 +108,10 @@ def test_corrupted_store(self):
|
|||
|
||||
def test_keychain(self):
|
||||
keychain = os.path.join(self.tmpdir, 'keychain')
|
||||
keychain2 = os.path.join(self.tmpdir, 'keychain2')
|
||||
self.darc('-k', keychain, 'init-keychain')
|
||||
self.darc('-k', keychain, 'change-password')
|
||||
self.darc('-k', keychain, 'export-restricted', keychain2)
|
||||
|
||||
|
||||
def suite():
|
||||
|
|
Loading…
Reference in a new issue