Skip to content

Commit 0549263

Browse files
committed
Merge pull request #6 from box/1.0.2
Fix failing pypy tests.
2 parents cafb756 + f47f70e commit 0549263

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ box-python-sdk
77
.. image:: https://travis-ci.org/box/box-python-sdk.png?branch=master
88
:target: https://travis-ci.org/box/box-python-sdk
99

10+
.. image:: https://readthedocs.org/projects/box-python-sdk/badge/?version=latest
11+
:target: http://box-python-sdk.readthedocs.org/en/latest
12+
:alt: Documentation Status
13+
1014
.. image:: https://pypip.in/v/boxsdk/badge.png
1115
:target: https://pypi.python.org/pypi/boxsdk
1216

@@ -57,8 +61,7 @@ Authenticate (get access/refresh token)
5761
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5862

5963
If you navigate the user to the auth_url,
60-
the user will eventually get redirected to
61-
http://YOUR_REDIRECT_URL?code=YOUR_AUTH_CODE.
64+
the user will eventually get redirected to http://YOUR_REDIRECT_URL?code=YOUR_AUTH_CODE.
6265
After getting the code, you will be able to use the code to exchange for access token and fresh token.
6366

6467
The SDK handles all the work for you; all you need to do is run:

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def main():
5757
install_requires.append('ordereddict>=1.1')
5858
setup(
5959
name='boxsdk',
60-
version='1.0.1',
60+
version='1.0.2',
6161
description='Official Box Python SDK',
6262
long_description=open(join(base_dir, 'README.rst')).read(),
6363
author='Box',
@@ -68,7 +68,8 @@ def main():
6868
tests_require=['pytest', 'pytest-xdist', 'mock', 'sqlalchemy', 'bottle', 'jsonpatch'],
6969
cmdclass={'test': PyTest},
7070
classifiers=CLASSIFIERS,
71-
keywords='box oauth2 sdk'
71+
keywords='box oauth2 sdk',
72+
license=open(join(base_dir, 'LICENSE')).read(),
7273
)
7374

7475

test/unit/object/test_folder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _assert_collaborator_added(test_folder, collaborator, mock_box_session, mock
6060
@pytest.mark.parametrize('role', iter(CollaborationRole))
6161
def test_add_user_collaborator(test_folder, mock_user, mock_box_session, mock_collab_response, notify, role):
6262
data = json.dumps({
63-
'item': {'type': 'folder', 'id': test_folder.object_id},
63+
'item': {'id': test_folder.object_id, 'type': 'folder'},
6464
'accessible_by': {'id': mock_user.object_id, 'type': 'user'},
6565
'role': role,
6666
})
@@ -71,7 +71,7 @@ def test_add_user_collaborator(test_folder, mock_user, mock_box_session, mock_co
7171
@pytest.mark.parametrize('role', iter(CollaborationRole))
7272
def test_add_group_collaborator(test_folder, mock_group, mock_box_session, mock_collab_response, notify, role):
7373
data = json.dumps({
74-
'item': {'type': 'folder', 'id': test_folder.object_id},
74+
'item': {'id': test_folder.object_id, 'type': 'folder'},
7575
'accessible_by': {'id': mock_group.object_id, 'type': 'group'},
7676
'role': role,
7777
})
@@ -83,7 +83,7 @@ def test_add_group_collaborator(test_folder, mock_group, mock_box_session, mock_
8383
def test_add_email_collaborator(test_folder, mock_box_session, mock_collab_response, notify, role):
8484
email_address = '[email protected]'
8585
data = json.dumps({
86-
'item': {'type': 'folder', 'id': test_folder.object_id},
86+
'item': {'id': test_folder.object_id, 'type': 'folder'},
8787
'accessible_by': {'login': email_address, 'type': 'user'},
8888
'role': role,
8989
})

0 commit comments

Comments
 (0)