Skip to content

Commit 805e5db

Browse files
door hanger for demo IT not working, hot fix
1 parent dac2457 commit 805e5db

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

l10n_CM/Unified/conftest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_html_files(live_site, region):
4242

4343
@pytest.fixture()
4444
def region():
45-
return os.environ.get("FX_REGION", "US")
45+
return os.environ.get("FX_REGION", "IT")
4646

4747

4848
@pytest.fixture()
@@ -104,9 +104,11 @@ def cc_site_data(live_site, region):
104104

105105

106106
@pytest.fixture
107-
def is_live_site(live_site):
108-
"""Determine if the site is live."""
109-
return live_site != "demo"
107+
def is_live_site(live_site, region):
108+
"""Determine if the site is live.
109+
Treat demo IT as a live site until the doorhanger bug is fixed.
110+
"""
111+
return live_site != "demo" or region in {"IT"}
110112

111113

112114
@pytest.fixture(scope="session")

l10n_CM/constants/demo/demo_ad.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"country",
2222
"email",
2323
"tel"
24-
],
25-
"skip_regions": ["IT"]
24+
]
2625
}

0 commit comments

Comments
 (0)