Skip to content

Commit 8b88fba

Browse files
authored
Merge pull request #34 from securenative/dev
Run actions on various os
2 parents 96abbcc + 29b6f88 commit 8b88fba

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ securenative = SecureNative.init_with_api_key("YOUR_API_KEY")
6262
from securenative.securenative import SecureNative
6363

6464

65-
securenative = SecureNative.init_with_options(SecureNative.config_builder().with_api_key("API_KEY").with_max_events(10).with_log_level("ERROR"))
65+
securenative = SecureNative.init_with_options(SecureNative.config_builder().with_api_key("API_KEY").with_max_events(10).with_log_level("ERROR").build())
6666
```
6767

6868
## Getting SecureNative instance

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.2
1+
0.2.3

securenative/config/configuration_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def with_fail_over_strategy(self, fail_over_strategy):
5959
self.fail_over_strategy = fail_over_strategy
6060
return self
6161

62+
def build(self):
63+
return self
64+
6265
@staticmethod
6366
def get_default_securenative_options():
6467
return SecureNativeOptions()
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import os
2-
3-
41
class VersionUtils(object):
52

63
@staticmethod
74
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()
5+
return "0.2.3"

tests/version_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
3+
from securenative.utils.version_utils import VersionUtils
4+
5+
6+
class VersionTest(unittest.TestCase):
7+
8+
def test_version(self):
9+
version = VersionUtils.get_version()
10+
11+
self.assertIsNotNone(version)

0 commit comments

Comments
 (0)