diff --git a/test/test_version.py b/test/test_version.py index 449a9e7..86d75af 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -4,5 +4,7 @@ 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'