Skip to content

Commit 4cb3a8a

Browse files
author
Kimberly Sereduck
authored
make it black (#142)
1 parent 958614e commit 4cb3a8a

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

axe_selenium_python/axe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ def execute(self, context=None, options=None):
3333
:param context: which page part(s) to analyze and/or what to exclude.
3434
:param options: dictionary of aXe options.
3535
"""
36-
template = "var callback = arguments[arguments.length - 1];" \
37-
"axe.run(%s).then(results => callback(results))"
36+
template = (
37+
"var callback = arguments[arguments.length - 1];"
38+
+ "axe.run(%s).then(results => callback(results))"
39+
)
3840
args = ""
3941

4042
# If context parameter is passed, add to args

axe_selenium_python/tests/test_axe.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ def firefox_driver():
2323
def chrome_driver():
2424
opts = webdriver.ChromeOptions()
2525
opts.headless = True
26-
opts.add_argument('--no-sandbox')
27-
driver_path = getenv('CHROMEDRIVER_PATH')
28-
driver = webdriver.Chrome(options=opts, executable_path=driver_path) \
29-
if driver_path else webdriver.Chrome(options=opts)
26+
opts.add_argument("--no-sandbox")
27+
driver_path = getenv("CHROMEDRIVER_PATH")
28+
driver = (
29+
webdriver.Chrome(options=opts, executable_path=driver_path)
30+
if driver_path
31+
else webdriver.Chrome(options=opts)
32+
)
3033
yield driver
3134
driver.close()
3235

0 commit comments

Comments
 (0)