1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-31 20:27:00 +00:00
vorta/tests/test_utils.py
2020-09-27 15:19:39 +08:00

11 lines
346 B
Python

import uuid
from vorta.keyring.abc import get_keyring
def test_keyring(qapp):
UNICODE_PW = 'kjalsdfüadsfäadsfß'
REPO = f'vorta-test-repo.{uuid.uuid4()}.com:repo' # Random repo URL
keyring = get_keyring()
keyring.set_password('vorta-repo', REPO, UNICODE_PW)
assert keyring.get_password("vorta-repo", REPO) == UNICODE_PW