diff options
| author | molodaya_mama <aakupov062@gmail.com> | 2026-11-24 03:00:45 +0500 |
|---|---|---|
| committer | molodaya_mama <aakupov062@gmail.com> | 2026-11-24 03:00:45 +0500 |
| commit | c83031fa51ee4b3f0a0e99e8bc63da6bb49a93b1 (patch) | |
| tree | b727ef3a364e828e93e035486d513c81481bef91 /tests/test_progress_dashboard.py | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
progress_dashboard: require --github when using --login
Diffstat (limited to 'tests/test_progress_dashboard.py')
| -rw-r--r-- | tests/test_progress_dashboard.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_progress_dashboard.py b/tests/test_progress_dashboard.py index 8a0f6a20b..d90fd96c4 100644 --- a/tests/test_progress_dashboard.py +++ b/tests/test_progress_dashboard.py | |||
| @@ -441,6 +441,15 @@ class Scrub(unittest.TestCase): | |||
| 441 | 441 | ||
| 442 | 442 | ||
| 443 | class Outputs(unittest.TestCase): | 443 | class Outputs(unittest.TestCase): |
| 444 | def test_login_without_github_is_an_argument_error(self): | ||
| 445 | with tempfile.TemporaryDirectory() as tmp: | ||
| 446 | out = os.path.join(tmp, "out") | ||
| 447 | cmd = [sys.executable, "-I", TOOL, "--out", out, "--login", "fixture-reviewer"] | ||
| 448 | result = subprocess.run(cmd, capture_output=True, cwd=ROOT, timeout=120) | ||
| 449 | self.assertEqual(result.returncode, 2, result.stderr.decode("utf-8", "replace")) | ||
| 450 | self.assertIn(b"--login requires --github", result.stderr) | ||
| 451 | self.assertFalse(os.path.exists(out)) | ||
| 452 | |||
| 444 | def test_nonpositive_test_options_are_argument_errors(self): | 453 | def test_nonpositive_test_options_are_argument_errors(self): |
| 445 | with tempfile.TemporaryDirectory() as tmp: | 454 | with tempfile.TemporaryDirectory() as tmp: |
| 446 | out = os.path.join(tmp, "out") | 455 | out = os.path.join(tmp, "out") |