Skip to content

Commit

Permalink
Improve integration tests scripts (#316)
Browse files Browse the repository at this point in the history
When running locally, they would generate a symbolic link inside the
dags symbolic link, if it previously existed.

This PR solves these limitations.
  • Loading branch information
tatiana authored Dec 9, 2024
1 parent 8e27a98 commit 017bc30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions scripts/test/integration-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ set -v
set -x
set -e

if [ -L "dags" ]; then
echo "Symbolic link 'dags' already exists."
elif [ -e "dags" ]; then
echo "'dags' exists but is not a symbolic link. Please resolve this manually."
else
ln -s dev/dags dags
echo "Symbolic link 'dags' created successfully."
fi

rm -rf airflow.*
pip freeze | grep airflow
airflow db reset -y
Expand Down
2 changes: 0 additions & 2 deletions scripts/test/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ ls $AIRFLOW_HOME

airflow db check

ln -s dev/dags dags

pytest -vv \
--cov=dagfactory \
--cov-report=term-missing \
Expand Down

0 comments on commit 017bc30

Please sign in to comment.