hypercore-crypto/test/test_version.py
2019-12-04 22:50:05 +07:00

11 lines
260 B
Python

"""Version test module."""
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
mocker.patch(target, side_effect=Exception())
from hypercore_crypto.__init__ import __version__
assert __version__ == 'unknown'