Skip to content

Commit

Permalink
test: had a check for the env file in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Sep 7, 2024
1 parent ee72f1f commit 79acfce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
"""Integration tests."""
import os

from dotenv import load_dotenv

load_dotenv("pytest.env")
dotenv_file = "pytest.env"
if not os.path.isfile(dotenv_file):
raise FileNotFoundError(f"Tests: File '{dotenv_file}' not found.")

load_dotenv(dotenv_file)
print("Loaded pytest.env")

import logging
Expand Down

0 comments on commit 79acfce

Please sign in to comment.