We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5876c45 commit 6f73024Copy full SHA for 6f73024
securenative/utils/version_utils.py
@@ -5,7 +5,4 @@ class VersionUtils(object):
5
6
@staticmethod
7
def get_version():
8
- root_dir = os.path.dirname(os.path.abspath(__file__)).replace("/securenative/utils", "")
9
- path = os.path.join(root_dir, "VERSION")
10
- with open(path) as f:
11
- return f.read()
+ return "0.2.3"
tests/version_test.py
@@ -0,0 +1,11 @@
1
+import unittest
2
+
3
+from securenative.utils.version_utils import VersionUtils
4
+class VersionTest(unittest.TestCase):
+ def test_version(self):
+ version = VersionUtils.get_version()
+ self.assertIsNotNone(version)
0 commit comments