Skip to content

Commit 8d4a211

Browse files
remove conftest change
1 parent 15c915e commit 8d4a211

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

l10n_CM/Unified/conftest.py

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

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

4747

4848
@pytest.fixture()
4949
def live_site():
50-
return os.environ.get("CM_SITE", "torfs")
50+
return os.environ.get("CM_SITE", "demo")
5151

5252

5353
@pytest.fixture()

modules/util.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,12 @@ def create_localized_faker(self, country_code: str):
219219
"""
220220

221221
# Check if locale exists, otherwise return None
222-
locale = list(filter(lambda x: country_code in x, AVAILABLE_LOCALES))
222+
locale = next(filter(lambda x: country_code in x, AVAILABLE_LOCALES[::-1]), None)
223223

224224
if not locale:
225-
logging.error(
226-
f"Invalid country code `{country_code}`. No faker instance created."
227-
)
225+
logging.error(f"Invalid country code `{country_code}`. No faker instance created.")
228226
return None # No fallback
229-
locale = locale[-1]
227+
230228
try:
231229
# seed to get consistent data
232230
if self.fake is None:

0 commit comments

Comments
 (0)