style: fix import order and quote style in test file

This commit is contained in:
Paul Gauthier (aider) 2024-10-30 11:59:52 -07:00
parent 920e8da57c
commit a70b364842

View file

@ -1,13 +1,13 @@
import os import os
import shutil import shutil
import struct import struct
import webbrowser
from unittest import mock from unittest import mock
import pytest import pytest
from git import GitError, Repo from git import GitError, Repo
from aider import urls from aider import urls
import webbrowser
from aider.main import sanity_check_repo from aider.main import sanity_check_repo
@ -101,7 +101,7 @@ def test_detached_head_state(create_repo, mock_io):
mock_io.tool_output.assert_not_called() mock_io.tool_output.assert_not_called()
@mock.patch('webbrowser.open') @mock.patch("webbrowser.open")
def test_git_index_version_greater_than_2(mock_browser, create_repo, mock_io): def test_git_index_version_greater_than_2(mock_browser, create_repo, mock_io):
repo_path, repo = create_repo repo_path, repo = create_repo
# Set the git index version to 3 # Set the git index version to 3