Added import of unittest.mock to test_repomap.py.

This commit is contained in:
Paul Gauthier 2023-05-28 17:07:05 -07:00
parent f2a116e0e1
commit 8b3b4a2e26

View file

@ -2,7 +2,7 @@ import os
import tempfile
import unittest
from aider.repomap import RepoMap
from unittest.mock import patch
class TestRepoMap(unittest.TestCase):
def test_get_tags_map(self):
@ -55,8 +55,6 @@ def my_function(arg1, arg2):
self.assertIn("my_method", result)
self.assertIn("my_function", result)
from unittest.mock import patch
def test_check_for_ctags_failure(self):
with patch("subprocess.run") as mock_run:
mock_run.side_effect = Exception("ctags not found")