This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic/test/test_version.py
2020-04-03 14:32:16 +02:00

11 lines
253 B
Python

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