Add spaces after `assert` and enhance git py diff. By @real-yfprojects (#1385)

This commit is contained in:
yfprojects 2022-08-13 20:21:16 +02:00 committed by GitHub
parent d8e4a93cdd
commit 8a94457b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.py diff=python

View File

@ -37,7 +37,7 @@ def test_autostart(qapp, qtbot):
with open(autostart_path) as desktop_file:
desktop_file_text = desktop_file.read()
assert(desktop_file_text.startswith("[Desktop Entry]"))
assert (desktop_file_text.startswith("[Desktop Entry]"))
click_autostart()
if sys.platform == 'linux':

View File

@ -76,7 +76,7 @@ def test_password_autofill(qapp, qtbot):
qtbot.keyClicks(add_repo_window.repoURL, test_repo_url)
assert(add_repo_window.passwordLineEdit.text() == password)
assert (add_repo_window.passwordLineEdit.text() == password)
def test_repo_add_success(qapp, qtbot, mocker, borg_json_output):