Skip to content

Commit

Permalink
feat(dbt): ajout dun test pour confirmer que le cli est diposnible de…
Browse files Browse the repository at this point in the history
…puis airflow
  • Loading branch information
alexisig committed Dec 17, 2024
1 parent 224fba2 commit 22a093e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions airflow/tests/test_dbt_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import subprocess

import pytest


def test_dbt_cli_is_available():
"""
Teste si le cli dbt est disponible depuis la commande dbt
"""
try:
subprocess.run(["dbt", "--help"], check=True)
except FileNotFoundError:
pytest.fail("La commande dbt n'est pas disponible")
except subprocess.CalledProcessError as e:
pytest.fail(f"La commande dbt a retourné une erreur: {e}")

0 comments on commit 22a093e

Please sign in to comment.