flat-tree/test/test_version.py
Luke Murphy 70c6d2f746
All checks were successful
continuous-integration/drone/push Build is passing
Appease black
2020-05-16 18:20:35 +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 flat_tree.__init__ import __version__
assert __version__ == "unknown"