Skip to content

fix: tests import exception from correct location #613

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

Merged
merged 2 commits into from
May 13, 2025

Conversation

djudjuu
Copy link
Contributor

@djudjuu djudjuu commented May 6, 2025

tests did no longer run because they were trying to import this exception from a wrong location.
after moving it, most passed except the workflow tests dlt init compatibility.

with refactors iceberg and duckdb cache support
the exception imported in the utils file moved.
most workflows worked correctly, except the one in init.yml which didn't do make dev but only installed dltpure-dep-group

[dependency-groups]
dltpure = ["dlt>=1.7.0"]

I dont understand why this didnt pick up the latest then, but apparrenlty it didnt. changing it to 1.10. works though

@djudjuu djudjuu changed the title exception moved fix: tests import exception from correct location May 6, 2025
@djudjuu djudjuu requested a review from rudolfix May 6, 2025 14:07
@@ -26,7 +26,7 @@
from dlt.common.schema.typing import TTableSchema
from dlt.common.utils import set_working_dir

from dlt.pipeline.exceptions import SqlClientNotAvailable
from dlt.common.destination.exceptions import SqlClientNotAvailable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is ok because this is a part of tests! just remember that we need to be backward compatible with old dlt versions in the main code so you'd need to try both options there

@djudjuu
Copy link
Contributor Author

djudjuu commented May 13, 2025

what can I do to make that pass?

@rudolfix rudolfix merged commit 2c1428b into master May 13, 2025
10 checks passed
@rudolfix rudolfix deleted the fix/test-import-failin branch May 13, 2025 10:55
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

Successfully merging this pull request may close these issues.

2 participants