2023-05-26 04:10:56 +05:30
|
|
|
import pytest
|
|
|
|
|
2025-01-24 11:35:39 -08:00
|
|
|
import datahub._version as datahub_version
|
2021-05-07 15:21:43 -07:00
|
|
|
|
|
|
|
|
2023-05-26 04:10:56 +05:30
|
|
|
@pytest.mark.filterwarnings(
|
|
|
|
"ignore:pkg_resources is deprecated as an API:DeprecationWarning"
|
|
|
|
)
|
2021-05-07 15:21:43 -07:00
|
|
|
def test_datahub_version():
|
|
|
|
# Simply importing pkg_resources checks for unsatisfied dependencies.
|
2025-03-05 12:41:03 +01:00
|
|
|
import pkg_resources # type: ignore[import-untyped]
|
2021-05-07 15:21:43 -07:00
|
|
|
|
2025-01-24 11:35:39 -08:00
|
|
|
assert pkg_resources.get_distribution(datahub_version.__package_name__).version
|