mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
fix: update test to check for offer_url instead of confirm_ask
This commit is contained in:
parent
1cd373c0a5
commit
c96e3326bc
1 changed files with 2 additions and 4 deletions
|
@ -2,8 +2,6 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import struct
|
import struct
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
#ai fix: FAILED tests/basic/test_sanity_check_repo.py::test_git_index_version_greater_than_2 - AssertionError: confirm_ask('Open documentation url for more info?', subject='https://github.com/Aid...!
|
|
||||||
# it now calls offer_url, not confirm ask
|
|
||||||
import pytest
|
import pytest
|
||||||
from git import GitError, Repo
|
from git import GitError, Repo
|
||||||
|
|
||||||
|
@ -128,8 +126,8 @@ def test_git_index_version_greater_than_2(mock_browser, create_repo, mock_io):
|
||||||
"You may be able to convert your repo: git update-index --index-version=2"
|
"You may be able to convert your repo: git update-index --index-version=2"
|
||||||
)
|
)
|
||||||
mock_io.tool_output.assert_any_call("Or run aider --no-git to proceed without using git.")
|
mock_io.tool_output.assert_any_call("Or run aider --no-git to proceed without using git.")
|
||||||
mock_io.confirm_ask.assert_any_call(
|
mock_io.offer_url.assert_any_call(
|
||||||
"Open documentation url for more info?", subject=urls.git_index_version
|
"Open documentation url for more info?", urls.git_index_version
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue