(self)
| 38 | self.assertIsNone(result) |
| 39 | |
| 40 | def test_run_cmd_win(self): |
| 41 | if os.name != "nt": |
| 42 | self.skipTest("This test only runs on Windows") |
| 43 | from pathlib import Path |
| 44 | |
| 45 | root = Path(__file__).parent.parent.parent.absolute().as_posix() |
| 46 | linter = Linter(encoding="utf-8", root=root) |
| 47 | result = linter.run_cmd("dir", "tests\\basic", "code") |
| 48 | self.assertIsNone(result) |
| 49 | |
| 50 | @patch("subprocess.Popen") |
| 51 | def test_run_cmd_with_errors(self, mock_popen): |