Skip to content

Commit

Permalink
test: fix two shameful typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tskir committed Nov 2, 2023
1 parent 4490d5a commit 96b1051
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/airflow/test_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
@pytest.fixture(params=["./src/airflow/dags"])
def dag_bag(request, monkeypatch: pytest.MonkeyPatch):
"""Return a DAG bag for testing."""
# It's important to change directory before importing DAGs, because this is way Airflow works in production: the
# dags/ directory serves as a root (and indeed $PYTHONPATH) for all DAGS contained therein. Using Monkeypatch
# ensures that the other tests are not affected.
# It's important to change the directory before importing DAGs, because this is the way Airflow works in
# production: the dags/ directory serves as a root (and indeed $PYTHONPATH) for all DAGs contained therein. Using
# Monkeypatch ensures that the other tests are not affected.
monkeypatch.chdir(request.param)
return DagBag(dag_folder=request.param, include_examples=False)

Expand Down

0 comments on commit 96b1051

Please sign in to comment.