mirror of
https://github.com/borgbase/vorta
synced 2024-12-23 08:17:08 +00:00
4f6137207b
* Fix unicode issue with Darwin Keychain. Add new test for it. Fixes #89 * Don't add invalid repo. Improve error message when adding repo fails. Fixes #87 * Add setting for archive name and prune prefix. #88 * UI tweaks.
10 lines
307 B
Python
10 lines
307 B
Python
import uuid
|
|
from vorta.utils import keyring
|
|
|
|
|
|
def test_keyring(app):
|
|
UNICODE_PW = 'kjalsdfüadsfäadsfß'
|
|
REPO = f'vorta-test-repo.{uuid.uuid4()}.com:repo' # Random repo URL
|
|
|
|
keyring.set_password('vorta-repo', REPO, UNICODE_PW)
|
|
assert keyring.get_password("vorta-repo", REPO) == UNICODE_PW
|