diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:11:06 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:11:06 -0500 |
| commit | d78ad2da80dc1d8f9e523e3db746ab91dfaee539 (patch) | |
| tree | bde5b516c736c44160c169d828cfc6afac7f935b /tests/test_progress_dashboard.py | |
| parent | 851e60908172d6c69a1a710b964873f6a51100a3 (diff) | |
| parent | 4316631cd171583ae797c588753e71120182d4cf (diff) | |
Merge pull request #4081 from Markas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_progress_dashboard.py')
| -rw-r--r-- | tests/test_progress_dashboard.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_progress_dashboard.py b/tests/test_progress_dashboard.py index 0c2cdbd41..e37cfcbfd 100644 --- a/tests/test_progress_dashboard.py +++ b/tests/test_progress_dashboard.py | |||
| @@ -250,6 +250,17 @@ class Scrub(unittest.TestCase): | |||
| 250 | 250 | ||
| 251 | 251 | ||
| 252 | class Outputs(unittest.TestCase): | 252 | class Outputs(unittest.TestCase): |
| 253 | def test_invalid_test_filter_is_an_argument_error(self): | ||
| 254 | with tempfile.TemporaryDirectory() as tmp: | ||
| 255 | out = os.path.join(tmp, "out") | ||
| 256 | result = subprocess.run([sys.executable, "-I", TOOL, "--out", out, "--run-tests", "--tests", "["], | ||
| 257 | capture_output=True, cwd=ROOT, timeout=120) | ||
| 258 | self.assertEqual(result.returncode, 2, result.stderr.decode("utf-8", "replace")) | ||
| 259 | self.assertIn(b"--tests", result.stderr) | ||
| 260 | self.assertIn(b"unterminated character set", result.stderr) | ||
| 261 | self.assertNotIn(b"Traceback", result.stderr) | ||
| 262 | self.assertFalse(os.path.exists(out)) | ||
| 263 | |||
| 253 | def test_out_inside_the_repository_is_refused(self): | 264 | def test_out_inside_the_repository_is_refused(self): |
| 254 | r = subprocess.run([sys.executable, "-I", TOOL, "--out", os.path.join(ROOT, "progress_out_test")], | 265 | r = subprocess.run([sys.executable, "-I", TOOL, "--out", os.path.join(ROOT, "progress_out_test")], |
| 255 | capture_output=True, cwd=ROOT, timeout=120) | 266 | capture_output=True, cwd=ROOT, timeout=120) |