Skip to content

Commit 00a5fb9

Browse files
committed
Strange workaround to the fact that coverage tests are failing.
1 parent 1fd4255 commit 00a5fb9

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Version information."""
2+
import pkg_resources
23

34
# Information in this file is now superseded by the pyproject.toml file.
45

56
# The following line *must* be the last in the module, exactly as formatted:
6-
__version__ = "2.0.0b1"
7+
__version__ = pkg_resources.get_distribution('python-lambda-4dn').version

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-lambda-4dn"
3-
version = "2.0.0b1"
3+
version = "2.0.0b2"
44
description = "A forked version of python-lambda for 4DN-DCIC use in packaging and deploying lambda functions."
55
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
66
license = "MIT"

tests/test_aws_lambda.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@ class TestPythonLambdaUnit():
3434

3535
pytestmark = [pytest.mark.unit]
3636

37-
# No more _version.py file, so no more version to check.
38-
# Anyone who wants the version can get it from pkg_resources a different way. -kmp 12-Mar-2020
39-
#
40-
# def test_get_version(self):
41-
# """ Because coverage, thats why! """
42-
# from aws_lambda._version import __version__
43-
# assert len(__version__.split('.')) == 3 # should be x.x.x
37+
def test_get_version(self):
38+
""" Because coverage, thats why! """
39+
from aws_lambda._version import __version__
40+
assert len(__version__.split('.')) == 3 # should be x.x.x
4441

4542
def test_get_role_name(self):
4643
""" Basic test that validates our role_name format """

0 commit comments

Comments
 (0)