fix: data testing

This commit is contained in:
Stijnvandenbroek
2026-03-05 17:17:19 +00:00
parent c6f5adf621
commit 7902a5e354
6 changed files with 13 additions and 8 deletions

View File

@@ -57,12 +57,12 @@ def elementary_run_models(context: OpExecutionContext) -> None:
raise Exception(f"dbt run elementary failed with exit code {result.returncode}")
_EDR_REPORT_PATH = _DBT_DIR / "edr_target" / "elementary_report.html"
@op(ins={"after": In(Nothing)})
def elementary_generate_report(context: OpExecutionContext) -> None:
"""Run edr report to regenerate the Elementary HTML report."""
report_path = (
Path(__file__).parents[2] / "dbt" / "edr_target" / "elementary_report.html"
)
cmd = [
"edr",
"report",
@@ -71,7 +71,7 @@ def elementary_generate_report(context: OpExecutionContext) -> None:
"--project-dir",
str(_DBT_DIR),
"--file-path",
str(_EDR_REPORT_PATH),
str(report_path),
]
context.log.info(f"Running: {' '.join(cmd)}")
result = subprocess.run(cmd, capture_output=True, text=True)