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.
2020-04-03 12:32:16 +00:00
|
|
|
"""Version test module."""
|
|
|
|
|
|
|
|
|
|
|
|
def test_version_fails_gracefully(mocker):
|
2020-04-11 20:47:16 +00:00
|
|
|
target = "pkg_resources.get_distribution"
|
2020-04-03 12:32:16 +00:00
|
|
|
mocker.patch(target, side_effect=Exception())
|
|
|
|
|
|
|
|
from autonomic.__init__ import __version__
|
|
|
|
|
2020-04-11 20:47:16 +00:00
|
|
|
assert __version__ == "unknown"
|