Skip to content

Commit

Permalink
Modify python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albinazs committed Jun 25, 2024
1 parent 57b5021 commit 815a147
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wagtail/admin/tests/test_userbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class CustomRulesAndChecksAccessibilityItem(AccessibilityItem):

# Override via method
def get_axe_custom_rules(self, request):
return [
return super().get_axe_custom_rules(request) + [
{
"id": "link-text-quality",
"impact": "serious",
Expand All @@ -372,15 +372,15 @@ def get_axe_custom_rules(self, request):
"any": ["check-link-text"],
"enabled": True,
}
] + super().get_axe_custom_rules(request)
]

def get_axe_custom_checks(self, request):
return [
return super().get_axe_custom_checks(request) + [
{
"id": "check-link-text",
"options": {"pattern": "learn more$"},
}
] + super().get_axe_custom_checks(request)
]

with hooks.register_temporarily(
"construct_wagtail_userbar",
Expand Down

0 comments on commit 815a147

Please sign in to comment.