Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tester la structure des dags d'import #248

Open
vmttn opened this issue Jun 3, 2024 · 0 comments
Open

tester la structure des dags d'import #248

vmttn opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@vmttn
Copy link
Contributor

vmttn commented Jun 3, 2024

PI on pourrait mettre un test de non régression en qques lignes dans tests/ci/test_dags.py qui ferait:

dags = DagBag()

IMPORT_DAGS = [dag_id for dag_id in dags.dag_ids if dag_id.startswith("import_")]

@pytest.mark.parametrize("dag_id", IMPORT _DAGS)
def test_dag_import_sources(dag_id):
    dag = dags.get_dag(dag_id=dag_id)
    assert dag.task_dict.keys() == ["start", ..., "end"]

Quelque chose dans c egenre là ?

Originally posted by @vperron in #246 (review)

@vperron vperron self-assigned this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants