Use new ssh://-style URL format as placeholder and in test (#1473)

This commit is contained in:
Manu 2022-12-16 11:19:34 +01:00 committed by GitHub
parent 667f3b3779
commit 6779baecff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@
<item>
<widget class="QLineEdit" name="repoURL">
<property name="placeholderText">
<string>csvis8xq@csvis8xq.repo.borgbase.com:repo</string>
<string>ssh://abc123@abc123.repo.borgbase.com/./repo</string>
</property>
</widget>
</item>

View File

@ -4,7 +4,7 @@ from vorta.keyring.abc import VortaKeyring
def test_keyring():
UNICODE_PW = 'kjalsdfüadsfäadsfß'
REPO = f'vorta-test-repo.{uuid.uuid4()}.com:repo' # Random repo URL
REPO = f'ssh://asdf123@vorta-test-repo.{uuid.uuid4()}.com/./repo' # Random repo URL
keyring = VortaKeyring.get_keyring()
keyring.set_password('vorta-repo', REPO, UNICODE_PW)