Skip to content

Commit 786a2f8

Browse files
l10n clean up
1 parent f3774b6 commit 786a2f8

26 files changed

+4
-83
lines changed

l10n_CM/Unified/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ def get_html_files(live_site, region):
3030
parent_dir + f"/sites/{live_site}/{region}/{live_site}_ad.html"
3131
)
3232
cc_path_to_site = parent_dir + f"/sites/{live_site}/{region}/{live_site}_cc.html"
33+
address_html_file, cc_html_file = "", ""
3334
if os.path.exists(address_path_to_site) and os.path.exists(cc_path_to_site):
34-
address_html_file, cc_html_file = "", ""
3535
with open(address_path_to_site, "r", encoding="utf-8") as fp:
3636
address_html_file = fp.read()
3737
with open(cc_path_to_site, "r", encoding="utf-8") as fp:
3838
cc_html_file = fp.read()
3939
return address_html_file, cc_html_file
40-
return "", ""
40+
return address_html_file, cc_html_file
4141

4242

4343
@pytest.fixture()

l10n_CM/Unified/test_demo_ad_1b_dropdown_address_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_dropdown_presence_address_field(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
util: Utilities,
20-
autofill_popup: AutofillPopup,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_1c_dropdown_phone_email_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_dropdown_presence_email_phone_field(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
util: Utilities,
20-
autofill_popup: AutofillPopup,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_2a_preview_name_org_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_demo_ad_hover_name_org(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
util: Utilities,
20-
autofill_popup: AutofillPopup,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_2b_preview_address_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
76
from modules.page_object_prefs import AboutPrefs
8-
from modules.util import Utilities
97

108

119
@pytest.fixture()
@@ -26,8 +24,6 @@ def test_hover_address_is_previewed(
2624
region: str,
2725
about_prefs_privacy: AboutPrefs,
2826
address_autofill: AddressFill,
29-
autofill_popup: AutofillPopup,
30-
util: Utilities,
3127
fill_and_save_address: AutofillAddressBase,
3228
):
3329
"""

l10n_CM/Unified/test_demo_ad_2c_preview_phone_email_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
76
from modules.page_object_prefs import AboutPrefs
8-
from modules.util import Utilities
97

108

119
@pytest.fixture()
@@ -18,8 +16,6 @@ def test_hover_email_and_phone_autofill_preview(
1816
region: str,
1917
about_prefs_privacy: AboutPrefs,
2018
address_autofill: AddressFill,
21-
autofill_popup: AutofillPopup,
22-
util: Utilities,
2319
fill_and_save_address: AutofillAddressBase,
2420
):
2521
# Create fake data

l10n_CM/Unified/test_demo_ad_3a_autofill_address_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_demo_ad_autofill_address_fields(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
util: Utilities,
20-
autofill_popup: AutofillPopup,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_3b_autofill_name_org_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_demo_ad_autofill_name_org(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
autofill_popup: AutofillPopup,
20-
util: Utilities,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_3c_autofill_phone_email_fields.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
22
from selenium.webdriver import Firefox
33

4-
from modules.browser_object_autofill_popup import AutofillPopup
54
from modules.classes.autofill_base import AutofillAddressBase
65
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
86

97

108
@pytest.fixture()
@@ -16,8 +14,6 @@ def test_demo_ad_autofill_phone_email(
1614
driver: Firefox,
1715
region: str,
1816
address_autofill: AddressFill,
19-
autofill_popup: AutofillPopup,
20-
util: Utilities,
2117
fill_and_save_address: AutofillAddressBase,
2218
):
2319
"""

l10n_CM/Unified/test_demo_ad_4a_highlight_name_org_fields.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from modules.browser_object_autofill_popup import AutofillPopup
55
from modules.classes.autofill_base import AutofillAddressBase
66
from modules.page_object_autofill import AddressFill
7-
from modules.util import Utilities
87

98

109
@pytest.fixture()
@@ -16,7 +15,6 @@ def test_address_yellow_highlight_on_name_organization_fields(
1615
driver: Firefox,
1716
region: str,
1817
address_autofill: AddressFill,
19-
util: Utilities,
2018
autofill_popup: AutofillPopup,
2119
fill_and_save_address: AutofillAddressBase,
2220
):

0 commit comments

Comments
 (0)