File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ def get_html_files(live_site, region):
4242
4343@pytest .fixture ()
4444def region ():
45- return os .environ .get ("FX_REGION" , "BE " )
45+ return os .environ .get ("FX_REGION" , "US " )
4646
4747
4848@pytest .fixture ()
4949def live_site ():
50- return os .environ .get ("CM_SITE" , "torfs " )
50+ return os .environ .get ("CM_SITE" , "demo " )
5151
5252
5353@pytest .fixture ()
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments