mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
test: remove redundant Windows-specific ESLint test
This commit is contained in:
parent
bd7ff9cca4
commit
168598dad4
1 changed files with 1 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
import unittest
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from aider.dump import dump
|
||||
from aider.dump import dump # noqa
|
||||
from aider.linter import Linter
|
||||
|
||||
|
||||
|
@ -22,14 +22,6 @@ class TestLinter(unittest.TestCase):
|
|||
self.assertTrue(self.linter.languages["typescript"].startswith('"'))
|
||||
self.assertTrue(self.linter.languages["typescript"].endswith('" --format unix'))
|
||||
|
||||
@patch("pathlib.Path.is_file")
|
||||
def test_check_eslint_windows(self, mock_is_file):
|
||||
mock_is_file.return_value = True
|
||||
self.linter._check_eslint()
|
||||
self.assertIn("typescript", self.linter.languages)
|
||||
dump(self.linter.languages)
|
||||
self.assertTrue(self.linter.languages["typescript"].endswith('eslint" --format unix'))
|
||||
|
||||
def test_set_linter(self):
|
||||
self.linter.set_linter("javascript", "eslint")
|
||||
self.assertEqual(self.linter.languages["javascript"], "eslint")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue