Skip to content

Commit

Permalink
fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Mar 24, 2024
1 parent 4c5b0e3 commit 177b902
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/common/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def test_exception_traces() -> None:
raise IdentifierTooLongException("postgres", "table", "too_long_table", 8)
except Exception as exc:
trace = get_exception_trace(exc)
assert trace["exception_type"] == "dlt.common.exceptions.IdentifierTooLongException"
assert trace["exception_type"] == "dlt.common.destination.exceptions.IdentifierTooLongException"
assert isinstance(trace["stack_trace"], list)
assert trace["exception_attrs"] == {
"destination_name": "postgres",
Expand Down Expand Up @@ -280,7 +280,10 @@ def test_exception_trace_chain() -> None:
# outer exception first
assert len(traces) == 3
assert traces[0]["exception_type"] == "dlt.common.exceptions.PipelineException"
assert traces[1]["exception_type"] == "dlt.common.exceptions.IdentifierTooLongException"
assert (
traces[1]["exception_type"]
== "dlt.common.destination.exceptions.IdentifierTooLongException"
)
assert traces[2]["exception_type"] == "dlt.common.exceptions.TerminalValueError"


Expand Down

0 comments on commit 177b902

Please sign in to comment.