datahub/metadata-ingestion/tests/unit/test_packaging.py

14 lines
405 B
Python
Raw Permalink Normal View History

import pytest
import datahub._version as datahub_version
@pytest.mark.filterwarnings(
"ignore:pkg_resources is deprecated as an API:DeprecationWarning"
)
def test_datahub_version():
# Simply importing pkg_resources checks for unsatisfied dependencies.
import pkg_resources # type: ignore[import-untyped]
assert pkg_resources.get_distribution(datahub_version.__package_name__).version