11 lines
267 B
Python
11 lines
267 B
Python
"""Version test module."""
|
|
|
|
|
|
def test_version_fails_gracefully(mocker):
|
|
target = 'pkg_resources.get_distribution'
|
|
mocker.patch(target, side_effect=Exception())
|
|
|
|
from simple_message_channels.__init__ import __version__
|
|
|
|
assert __version__ == 'unknown'
|