chore(governance): add waiting task status
This commit is contained in:
@@ -14,6 +14,9 @@ if str(SCRIPTS) not in sys.path:
|
||||
sys.path.insert(0, str(SCRIPTS))
|
||||
|
||||
from audit_gitea_coordination import (
|
||||
ACTIVE_LABELS,
|
||||
READY_OR_ACTIVE_LABELS,
|
||||
STATUS_LABELS,
|
||||
audit_repository,
|
||||
latest_claim,
|
||||
paged,
|
||||
@@ -177,6 +180,11 @@ class OfflineRuleTests(unittest.TestCase):
|
||||
|
||||
|
||||
class GiteaHelperTests(unittest.TestCase):
|
||||
def test_waiting_status_is_not_claimable_or_active(self) -> None:
|
||||
self.assertIn("status/waiting", STATUS_LABELS)
|
||||
self.assertNotIn("status/waiting", READY_OR_ACTIVE_LABELS)
|
||||
self.assertNotIn("status/waiting", ACTIVE_LABELS)
|
||||
|
||||
def test_label_plan_detects_exclusive_change(self) -> None:
|
||||
desired = next(label for label in LABELS if label["name"] == "status/todo")
|
||||
existing = {
|
||||
|
||||
Reference in New Issue
Block a user