mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 08:10:47 +08:00
Fix cutover compare tab switching and order detail columns Key/Compare/Display.
Remount BizComparePage per route so templates↔jobs no longer stuck; align column order. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3d2489041a
commit
34a98fefcf
5 changed files with 57 additions and 34 deletions
|
|
@ -289,8 +289,8 @@ class CompareRulesTests(unittest.TestCase):
|
|||
compare_fields=["mac"],
|
||||
display_fields=["vrf", "age", "ip"],
|
||||
)
|
||||
# keys first, then display order extras, compare forced if missing
|
||||
self.assertEqual(explicit, ["ip", "iface", "vrf", "age", "mac"])
|
||||
# Key → Compare → Display-only (compare forced even if not ticked)
|
||||
self.assertEqual(explicit, ["ip", "iface", "mac", "vrf", "age"])
|
||||
|
||||
def test_display_only_field_does_not_change(self) -> None:
|
||||
"""Context column in display but not compare → value drift ignored."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue