1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-23 08:17:08 +00:00
vorta/tests/test_utils.py
Manuel Riel 4f6137207b
v0.6.1 Release (#86)
* 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.
2018-12-14 16:03:26 +08:00

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