style: Format error message assertion in test_commands.py

This commit is contained in:
Paul Gauthier (aider) 2024-10-02 09:21:23 -07:00
parent 8c45e25724
commit 70a509bbea

View file

@ -715,7 +715,9 @@ class TestCommands(TestCase):
commands.cmd_read_only(str(Path(repo_dir) / "nonexistent*.txt"))
# Check if the appropriate error message was displayed
mock_tool_error.assert_called_once_with(f"No matches found for: {Path(repo_dir) / 'nonexistent*.txt'}")
mock_tool_error.assert_called_once_with(
f"No matches found for: {Path(repo_dir) / 'nonexistent*.txt'}"
)
# Ensure no files were added to abs_read_only_fnames
self.assertEqual(len(coder.abs_read_only_fnames), 0)