File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments