mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
Modify the test to check if the linter was called with a filename string whose Path().name matches the expected filename.
This commit is contained in:
parent
33d9f46e25
commit
b9b04052c7
1 changed files with 2 additions and 1 deletions
|
@ -742,7 +742,8 @@ class TestCommands(TestCase):
|
|||
# Run cmd_lint
|
||||
commands.cmd_lint()
|
||||
|
||||
# Check if the linter was called with a filename string whose Path().name matches the expected filename
|
||||
# Check if the linter was called with a filename string
|
||||
# whose Path().name matches the expected filename
|
||||
mock_lint.assert_called_once()
|
||||
called_arg = mock_lint.call_args[0][0]
|
||||
self.assertEqual(Path(called_arg).name, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue