upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_progress_dashboard.py
diff options
context:
space:
mode:
authormolodaya_mama <aakupov062@gmail.com>2026-11-24 03:00:45 +0500
committermolodaya_mama <aakupov062@gmail.com>2026-11-24 03:00:45 +0500
commitc83031fa51ee4b3f0a0e99e8bc63da6bb49a93b1 (patch)
treeb727ef3a364e828e93e035486d513c81481bef91 /tests/test_progress_dashboard.py
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
progress_dashboard: require --github when using --login
Diffstat (limited to 'tests/test_progress_dashboard.py')
-rw-r--r--tests/test_progress_dashboard.py9
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
443class Outputs(unittest.TestCase): 443class 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")