Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Function names are updated and made meaningful.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh Sharma authored and Rishabh Sharma committed Oct 31, 2018
1 parent b9e22c0 commit 3155bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_axe/pytest_axe.py
Expand Up @@ -102,10 +102,10 @@ def get_rules(self):
response = self.selenium.execute_script("return axe.getRules();")
return response

def run(self):
def run_and_return_violations(self):
"""Inject aXe, run against current page, and return rules & violations."""
self.inject()
data = self.execute(self.context, self.options)
data = self.run(self.context, self.options)
violations = dict(
(rule["id"], rule)
for rule in data["violations"]
Expand Down Expand Up @@ -136,7 +136,7 @@ def impact_included(self, rule):
else:
return False

def analyze(self):
def run_tests_and_write_violations_to_file(self):
"""Run aXe accessibility checks, and write results to file."""
violations = self.run()

Expand Down

0 comments on commit 3155bb4

Please sign in to comment.