Skip to content

Commit 9fcfb7b

Browse files
authored
Merge pull request #22 from securenative/SN-1556-align-sdk
Fix github action tests
2 parents 8ac213d + 0f3b852 commit 9fcfb7b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install -r requirements.txt
34-
pip install codecov
35-
pip install pytest pytest-cov
33+
pip install .
34+
pip install pytest pytest-cov responses codecov requests-mock
3635
- name: Test with pytest
3736
env:
3837
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

securenative/event_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def run(self):
8787
for item in self.queue:
8888
try:
8989
res = self.http_client.post(item.url, item.body)
90-
if res.status_code is 401:
90+
if res.status_code == 401:
9191
item.retry = False
9292
elif res.status_code != 200:
9393
raise SecureNativeHttpException(res.status_code)

securenative/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ class Utils(object):
22

33
@staticmethod
44
def is_null_or_empty(string):
5-
if not string or len(string) is 0:
5+
if not string or len(string) == 0:
66
return True
77
return False

0 commit comments

Comments
 (0)