Skip to content

Commit

Permalink
Fix list_py_file_paths in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Jan 18, 2025
1 parent e50fe58 commit db90345
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/api_fastapi/core_api/routes/public/test_dag_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@


def get_corresponding_dag_file_count(dir: str, include_examples: bool = True) -> int:
return len(list_py_file_paths(directory=dir, include_examples=include_examples))
return len(list_py_file_paths(directory=dir)) + (
len(list_py_file_paths("/opt/airflow/airflow/example_dags")) if include_examples else 0
)


class TestDagReportEndpoint:
Expand Down

0 comments on commit db90345

Please sign in to comment.