Skip to content

Commit

Permalink
[AIRFLOW-6400] Fix pytest not working on Windows (#6964)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6dc59d5)
  • Loading branch information
baolsen authored and potiuk committed Dec 30, 2019
1 parent 862296a commit 4c62f7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ def breeze_test_helper(request):
print(" AIRFLOW ".center(60, "="))

# Setup test environment for breeze
home = os.getcwd()
airflow_home = os.environ.get("AIRFLOW_HOME") or home
os.environ["AIRFLOW_SOURCES"] = home
os.environ["AIRFLOW__CORE__DAGS_FOLDER"] = os.path.join(home, "tests", "dags")
home = os.path.expanduser("~")
airflow_home = os.environ.get("AIRFLOW_HOME") or os.path.join(home, "airflow")
tests_directory = os.path.dirname(os.path.realpath(__file__))

os.environ["AIRFLOW__CORE__DAGS_FOLDER"] = os.path.join(tests_directory, "dags")
os.environ["AIRFLOW__CORE__UNIT_TEST_MODE"] = "True"
os.environ["AWS_DEFAULT_REGION"] = (
os.environ.get("AWS_DEFAULT_REGION") or "us-east-1"
Expand Down

0 comments on commit 4c62f7b

Please sign in to comment.