Skip to content

Commit b13c5cd

Browse files
authored
fix: Update pyjtw dependency to work with Python 3.10 (#772)
Closes: SDK-2022
1 parent bcaab27 commit b13c5cd

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main():
5858
'python-dateutil', # To be removed after dropping Python 3.6
5959
]
6060
redis_requires = ['redis>=2.10.3']
61-
jwt_requires = ['pyjwt>=1.3.0', 'cryptography>=3']
61+
jwt_requires = ['pyjwt>=1.7.0', 'cryptography>=3']
6262
coveralls_requires = ['coveralls']
6363
dev_requires = ['tox']
6464
gh_requires = ['tox-gh-actions']
Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
import time
2-
3-
import pytest
4-
5-
from boxsdk import BoxAPIException
6-
7-
81
def test_upload_and_delete_avatar(user, image_path):
9-
try:
10-
avatar_urls = user.upload_avatar(image_path)
11-
assert 'large' in avatar_urls and 'preview' in avatar_urls and 'small' in avatar_urls
12-
13-
for _ in range(3):
14-
try:
15-
avatar = user.get_avatar()
16-
except BoxAPIException:
17-
time.sleep(1)
18-
continue
19-
break
20-
else:
21-
raise Exception("Cannot get avatar")
22-
23-
assert avatar
24-
finally:
25-
user.delete_avatar()
26-
27-
with pytest.raises(BoxAPIException):
28-
user.get_avatar()
2+
avatar_urls = user.upload_avatar(image_path)
3+
assert 'large' in avatar_urls and 'preview' in avatar_urls and 'small' in avatar_urls

0 commit comments

Comments
 (0)