Roll out the new boilerplate
This commit is contained in:
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
9
test/test_version.py
Normal file
9
test/test_version.py
Normal file
@ -0,0 +1,9 @@
|
||||
"""Version test module."""
|
||||
|
||||
|
||||
def test_version_fails_gracefully(mocker):
|
||||
target = 'pkg_resources.get_distribution'
|
||||
with mocker.patch(target, side_effect=Exception()):
|
||||
from hypercore_crypto.__init__ import __version__
|
||||
|
||||
assert __version__ == 'unknown'
|
Reference in New Issue
Block a user