Clarify that Policy is live (not a Phase 1 placeholder) in shell docs and nav module docstring. Strengthen the Policy nav graduation test to assert status=live and absence of the nav-stub CSS class. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
@@ -214,11 +214,16 @@ class TestPolicyRoutes(unittest.TestCase):
|
||||
self.assertIn(response.status_code, (404, 405))
|
||||
|
||||
def test_nav_links_policy(self):
|
||||
from webui.nav import STUB_PAGES
|
||||
# Policy is graduated live: not in STUB_PAGES and not labeled ·stub in nav.
|
||||
from webui.nav import STUB_PAGES, iter_nav_items
|
||||
|
||||
self.assertNotIn("/policy", STUB_PAGES)
|
||||
policy_items = [i for i in iter_nav_items() if i.href == "/policy"]
|
||||
self.assertEqual(len(policy_items), 1)
|
||||
self.assertEqual(policy_items[0].status, "live")
|
||||
text = self.client.get("/").text
|
||||
self.assertIn('href="/policy">Policy</a>', text)
|
||||
self.assertNotIn('href="/policy">Policy</a> <span class="muted">(stub)</span>', text)
|
||||
self.assertNotIn('href="/policy" class="nav-stub"', text)
|
||||
|
||||
|
||||
class TestPolicyViewFailSoft(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user