2019-07-08 09:40:40 +00:00
|
|
|
"""Version test module."""
|
|
|
|
|
|
|
|
|
|
|
|
def test_version_fails_gracefully(mocker):
|
|
|
|
target = 'pkg_resources.get_distribution'
|
|
|
|
with mocker.patch(target, side_effect=Exception()):
|
2019-07-08 11:04:00 +00:00
|
|
|
from merkle_tree_stream.__init__ import __version__
|
2019-07-08 09:40:40 +00:00
|
|
|
|
|
|
|
assert __version__ == 'unknown'
|