Skip to content

Commit f5c7ebc

Browse files
author
anna-singleton-resolver
committed
test: load dotenv before loading e2e test cases like other fixtures
1 parent 1229d8f commit f5c7ebc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/functional/e2e/testcases/parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import os
33
from pathlib import Path
44

5+
from dotenv import load_dotenv
6+
57
# Path to the shared testcases directory in athena-protobufs
68
_REPO_ROOT = Path(__file__).parent.parent.parent.parent.parent
79
TESTCASES_DIR = _REPO_ROOT / "athena-protobufs" / "testcases"
@@ -25,6 +27,7 @@ def __init__(
2527

2628

2729
def load_test_cases_by_env() -> list[AthenaTestCase]:
30+
_ = load_dotenv()
2831
return load_test_cases(
2932
os.getenv("ATHENA_E2E_TESTCASE_DIR", "integrator_sample")
3033
)

0 commit comments

Comments
 (0)