Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorritsandbrink committed Jul 31, 2024
1 parent e54bce3 commit 6be8683
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dlt/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _to_pip_install(self) -> str:
return "\n".join([f'pip install "{d}"' for d in self.dependencies])


class DepedencyVersionException(DltException):
class DependencyVersionException(DltException):
def __init__(
self, pkg_name: str, version_found: str, version_required: str, appendix: str = ""
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions dlt/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
DltException,
ExceptionTrace,
TerminalException,
DepedencyVersionException,
DependencyVersionException,
)
from dlt.common.typing import AnyFun, StrAny, DictStrAny, StrStr, TAny, TFun

Expand Down Expand Up @@ -577,7 +577,7 @@ def order_deduped(lst: List[Any]) -> List[Any]:
def assert_min_pkg_version(pkg_name: str, version: str, msg: str = "") -> None:
version_found = pkg_version(pkg_name)
if Version(version_found) < Version(version):
raise DepedencyVersionException(
raise DependencyVersionException(
pkg_name=pkg_name,
version_found=version_found,
version_required=">=" + version,
Expand Down
6 changes: 3 additions & 3 deletions tests/load/pipeline/test_filesystem_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from dlt.common import pendulum
from dlt.common.storages.load_package import ParsedLoadJobFileName
from dlt.common.utils import uniq_id
from dlt.common.exceptions import DepedencyVersionException
from dlt.common.exceptions import DependencyVersionException
from dlt.destinations import filesystem
from dlt.destinations.impl.filesystem.filesystem import FilesystemClient
from dlt.destinations.impl.filesystem.typing import TExtraPlaceholders
Expand Down Expand Up @@ -225,7 +225,7 @@ def some_source():
def test_delta_table_pyarrow_version_check() -> None:
"""Tests pyarrow version checking for `delta` table format.
DepedencyVersionException should be raised if pyarrow<17.0.0.
DependencyVersionException should be raised if pyarrow<17.0.0.
"""
# test intentionally does not use destination_configs(), because that
# function automatically marks `delta` table format configs as
Expand All @@ -242,7 +242,7 @@ def foo():

with pytest.raises(PipelineStepFailed) as pip_ex:
pipeline.run(foo())
assert isinstance(pip_ex.value.__context__, DepedencyVersionException)
assert isinstance(pip_ex.value.__context__, DependencyVersionException)


@pytest.mark.essential
Expand Down

0 comments on commit 6be8683

Please sign in to comment.