e2e tests pass locally

This commit is contained in:
alexjanousekGSA
2025-05-02 10:43:07 -04:00
parent 149d8e3ce5
commit eff92773cc
11 changed files with 91 additions and 220 deletions

View File

@@ -13,7 +13,9 @@ def is_api_down():
response = requests.get(api_base_url, timeout=2)
is_down = response.status_code != 200
if is_down:
logger.warning(f"API responded with status {response.status_code} at {api_base_url}")
logger.warning(
f"API responded with status {response.status_code} at {api_base_url}"
)
return is_down
except RequestException as e:
logger.error(f"API down when loading homepage {e}")

View File

@@ -198,6 +198,7 @@ def convert_report_date_to_preferred_timezone(db_date_str_in_utc):
def get_user_preferred_timezone():
if current_user and hasattr(current_user, "preferred_timezone"):
return current_user.preferred_timezone
tz = current_user.preferred_timezone
if tz in pytz.all_timezones:
return tz
return "US/Eastern"