Skip to content

Fix XR tests for exit_text_parent_level#211

Merged
jtdub merged 1 commit intomasterfrom
fix-xr-exit-text-parent-level-tests
Mar 20, 2026
Merged

Fix XR tests for exit_text_parent_level#211
jtdub merged 1 commit intomasterfrom
fix-xr-exit-text-parent-level-tests

Conversation

@jtdub
Copy link
Contributor

@jtdub jtdub commented Mar 20, 2026

Summary

  • Fix 3 failing tests in test_driver_cisco_xr.py that expected indented exit text ( end-policy, end-template) but now get unindented output after PR Sectional Exiting at Parent Level #142 set exit_text_parent_level=True on XR sectional exiting rules
  • Add exit_text_parent_level=True to the group/end-group rule for consistency with all other XR end-* rules

Test plan

  • All 19 XR driver tests pass
  • Full lint-and-test suite passes (553 tests, linting, type checking)

🤖 Generated with Claude Code

Update three tests to expect unindented exit text (end-policy,
end-template) now that exit_text_parent_level=True is set on XR
sectional exiting rules. Also add exit_text_parent_level=True to
the group/end-group rule for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jtdub jtdub merged commit 5911d1c into master Mar 20, 2026
5 checks passed
@jtdub jtdub deleted the fix-xr-exit-text-parent-level-tests branch March 20, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant