Skip to content

Commit 0c7b16d

Browse files
committed
formatting
1 parent 5f0eea3 commit 0c7b16d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tests/address_bar_and_search/test_preferences_all_toggles_enabled.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,23 @@ def test_preferences_all_toggles_enabled(driver: Firefox):
2727

2828
# Check if toggles are enabled
2929
nonsponsored_checkbox = about_prefs.get_element("firefox-suggest-nonsponsored")
30-
assert nonsponsored_checkbox.is_selected(), f"Checkbox with selector '{nonsponsored_checkbox}' is not checked"
30+
assert (
31+
nonsponsored_checkbox.is_selected()
32+
), f"Checkbox with selector '{nonsponsored_checkbox}' is not checked"
3133
sponsors_checkbox = about_prefs.get_element("firefox-suggest-sponsored")
32-
assert sponsors_checkbox.is_selected(), f"Checkbox with selector '{sponsors_checkbox}' is not checked"
34+
assert (
35+
sponsors_checkbox.is_selected()
36+
), f"Checkbox with selector '{sponsors_checkbox}' is not checked"
3337

3438
# Check if sponsored suggestion is displayed. Using long sleeps otherwise sponsored suggestions won't be displayed
3539
time.sleep(20)
3640
u.search("iphone", with_enter=False)
3741
time.sleep(20)
38-
with (driver.context(driver.CONTEXT_CHROME)):
42+
with driver.context(driver.CONTEXT_CHROME):
3943
assert nav.get_elements("sponsored-suggestion")
4044

4145
# Check if a non-sponsored suggestion is displayed
4246
u.search("wiki", with_enter=False)
43-
with (driver.context(driver.CONTEXT_CHROME)):
47+
with driver.context(driver.CONTEXT_CHROME):
4448
assert not nav.get_elements("sponsored-suggestion")
45-
assert nav.get_element("firefox-suggest").is_displayed()
49+
assert nav.get_element("firefox-suggest").is_displayed()

0 commit comments

Comments
 (0)