Fix linter errors in CLI and tests
Some checks failed
CI / Lint (push) Successful in 6s
CI / Type Check (push) Successful in 20s
CI / Test (push) Failing after 37s
CI / Release (push) Has been skipped

This commit is contained in:
2026-01-29 22:00:59 +00:00
parent 7e8943ac57
commit 45a8f11650
3 changed files with 3 additions and 6 deletions

View File

@@ -255,7 +255,7 @@ def export_report_cmd(
"[red]Error:[/red] Report generation requires additional dependencies.\n"
"Install with: [cyan]pip install py_dvt_ate[reports][/cyan]"
)
raise typer.Exit(1)
raise typer.Exit(1) from None
# Load config
if config_file is None:
@@ -295,7 +295,7 @@ def export_report_cmd(
full_run_id = UUID(run_id)
except ValueError:
console.print(f"[red]Error:[/red] Invalid run ID: '{run_id}'")
raise typer.Exit(1)
raise typer.Exit(1) from None
# Create report config
report_config = ReportConfig(
@@ -324,7 +324,7 @@ def export_report_cmd(
raise
except Exception as e:
console.print(f"[red]Error generating report:[/red] {e}")
raise typer.Exit(1)
raise typer.Exit(1) from None
finally:
repo.close()

View File

@@ -3,9 +3,7 @@
Tests the full report generation pipeline from test run to PDF output.
"""
import json
import tempfile
from datetime import datetime
from pathlib import Path
from uuid import UUID, uuid4

View File

@@ -5,7 +5,6 @@ from datetime import datetime
import pytest
from py_dvt_ate.data.models import TestResult, TestRun, TestStatus
from py_dvt_ate.reporting.exceptions import TemplateRenderError
from py_dvt_ate.reporting.models import ReportConfig, ReportData
from py_dvt_ate.reporting.renderers.html import HTMLRenderer