hypercore-crypto/test/test_version.py

11 lines
260 B
Python
Raw Normal View History

2019-08-07 06:31:30 +00:00
"""Version test module."""
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
2019-12-04 15:50:05 +00:00
mocker.patch(target, side_effect=Exception())
2019-08-07 06:31:30 +00:00
2019-12-04 15:50:05 +00:00
from hypercore_crypto.__init__ import __version__
assert __version__ == 'unknown'