Initialise the new module boilerplate
This commit is contained in:
.gitignore.readthedocs.ymlCHANGELOG.rstCODE_OF_CONDUCT.rstCONTRIBUTING.rstLICENSEMANIFEST.inREADME.rst
changelog
documentation
Makefile
source
merkle-tree-stream
mypy.inipyproject.tomlsetup.cfgsetup.pytest
tox.ini
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 merkle-tree-stream.__init__ import __version__
|
||||
|
||||
assert __version__ == 'unknown'
|
Reference in New Issue
Block a user