Skip to content

Commit

Permalink
fix e2e config
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirkamara committed Feb 4, 2025
1 parent efcba17 commit c1bc47f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions e2e_tests/config.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import warnings
from starlette.config import Config


try:
config = Config('.env')
# Workaround needed until FastAPI uses Starlette >= 3.7.1
except FileNotFoundError:
config = Config()
warnings.filterwarnings("ignore", message="Config file '.env' not found.")

config = Config('.env')

# Resource Info
RESOURCE_LOCATION: str = config("RESOURCE_LOCATION", default="")
Expand Down

0 comments on commit c1bc47f

Please sign in to comment.