Fix mocker usage

This commit is contained in:
Luke Murphy 2019-12-04 22:50:05 +07:00
parent 284e0ff66b
commit 8f0afd7780
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -3,7 +3,8 @@
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
with mocker.patch(target, side_effect=Exception()):
mocker.patch(target, side_effect=Exception())
from hypercore_crypto.__init__ import __version__
assert __version__ == 'unknown'