Skip to content

Commit f1a9766

Browse files
committed
formatting'
1 parent a35033e commit f1a9766

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

tests/security_and_privacy/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ def set_prefs(add_prefs: dict):
1111
"""Set prefs"""
1212
prefs = []
1313
prefs.extend(add_prefs)
14-
return prefs
14+
return prefs

tests/security_and_privacy/test_blocking_cryptominers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22

33
import pytest
44
from selenium.webdriver import Firefox
5+
56
from modules.browser_object_navigation import Navigation
67
from modules.page_object_about_prefs import AboutPrefs
78

89
CRYPTOMINERS_URL = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
910

11+
1012
@pytest.fixture()
1113
def add_prefs():
1214
return []
1315

16+
1417
def test_blocking_cryptominers(driver: Firefox):
1518
# instantiate objects
1619
nav = Navigation(driver).open()

tests/security_and_privacy/test_cryptominers_blocked_and_shown_in_info_panel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import pytest
44
from selenium.webdriver import Firefox
5+
56
from modules.browser_object_navigation import Navigation
67

78
CRYPTOMINERS_URL = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
89

10+
911
@pytest.fixture()
1012
def add_prefs():
1113
return []

tests/security_and_privacy/test_no_trackers_detected.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
22
from selenium.webdriver import Firefox
3+
34
from modules.browser_object_navigation import Navigation
45

56
NOTRACKERS_URL = "http://example.com/"
67

8+
79
@pytest.fixture()
810
def add_prefs():
911
return []
@@ -20,4 +22,4 @@ def test_no_trackers_detected(driver: Firefox):
2022
# Click on the shield icon and verify that trackers are detected
2123
with driver.context(driver.CONTEXT_CHROME):
2224
nav.get_element("shield-icon").click()
23-
assert nav.get_element("no-trackers-detected").is_displayed()
25+
assert nav.get_element("no-trackers-detected").is_displayed()

0 commit comments

Comments
 (0)