diff --git a/bw_processing/utils.py b/bw_processing/utils.py index 07f68b6..80cc163 100644 --- a/bw_processing/utils.py +++ b/bw_processing/utils.py @@ -22,7 +22,7 @@ def as_integer(version_str: str) -> Union[int, str]: return tuple( as_integer(v) - for v in importlib.metadata.version("bw_processing") + for v in importlib.metadata.version("bw-processing") .strip() .split(".") ) diff --git a/tests/test_utils.py b/tests/test_utils.py index 08741a9..0aac54a 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -7,6 +7,7 @@ from bw_processing.errors import InvalidName from bw_processing.utils import ( + get_version_tuple, check_name, check_suffix, dictionary_formatter, @@ -14,6 +15,10 @@ ) +def test_get_version_tuple(): + assert isinstance(get_version_tuple(), tuple) + + def test_load_bytes(): obj = BytesIO() np.save(obj, np.arange(10), allow_pickle=False)