Commit 7adb173a authored by Michael Fladischer's avatar Michael Fladischer

New upstream version 8.7.1

parent fc2a1926
Metadata-Version: 1.1
Name: dropbox
Version: 8.7.0
Version: 8.7.1
Summary: Official Dropbox API Client
Home-page: http://www.dropbox.com/developers
Author: Dropbox
......@@ -9,7 +9,7 @@ License: MIT License
Description: Dropbox for Python
==================
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.0
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.1
:target: https://travis-ci.org/dropbox/dropbox-sdk-python
.. image:: https://readthedocs.org/projects/dropbox-sdk-python/badge/?version=stable
......@@ -143,7 +143,6 @@ Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
......
Dropbox for Python
==================
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.0
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.1
:target: https://travis-ci.org/dropbox/dropbox-sdk-python
.. image:: https://readthedocs.org/projects/dropbox-sdk-python/badge/?version=stable
......
Metadata-Version: 1.1
Name: dropbox
Version: 8.7.0
Version: 8.7.1
Summary: Official Dropbox API Client
Home-page: http://www.dropbox.com/developers
Author: Dropbox
......@@ -9,7 +9,7 @@ License: MIT License
Description: Dropbox for Python
==================
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.0
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=v8.7.1
:target: https://travis-ci.org/dropbox/dropbox-sdk-python
.. image:: https://readthedocs.org/projects/dropbox-sdk-python/badge/?version=stable
......@@ -143,7 +143,6 @@ Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
......
......@@ -6,7 +6,7 @@ __all__ = [
# This should always be 0.0.0 in master. Only update this after tagging
# before release.
__version__ = '8.7.0'
__version__ = '8.7.1'
import contextlib
import json
......@@ -596,4 +596,12 @@ class DropboxTeam(_DropboxTransport, DropboxTeamBase):
new_headers = self._headers.copy() if self._headers else {}
new_headers[select_header_name] = team_member_id
return self.clone(headers=new_headers)
return Dropbox(
self._oauth2_access_token,
max_retries_on_error=self._max_retries_on_error,
max_retries_on_rate_limit=self._max_retries_on_rate_limit,
timeout=self._timeout,
user_agent=self._raw_user_agent,
session=self._session,
headers=new_headers,
)
......@@ -69,7 +69,6 @@ dist = setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
......
......@@ -144,6 +144,28 @@ class TestDropbox(unittest.TestCase):
team_member_id = r.members[0].profile.team_member_id
dbxt.as_user(team_member_id).files_list_folder('')
@dbx_team_from_env
def test_as_user(self, dbxt):
dbx_as_user = dbxt.as_user('1')
self.assertIsInstance(dbx_as_user, Dropbox)
@dbx_team_from_env
def test_as_admin(self, dbxt):
dbx_as_admin = dbxt.as_admin('1')
self.assertIsInstance(dbx_as_admin, Dropbox)
@dbx_from_env
def test_clone_when_user_linked(self, dbx):
new_dbx = dbx.clone()
self.assertIsNot(dbx, new_dbx)
self.assertIsInstance(new_dbx, dbx.__class__)
@dbx_team_from_env
def test_clone_when_team_linked(self, dbxt):
new_dbxt = dbxt.clone()
self.assertIsNot(dbxt, new_dbxt)
self.assertIsInstance(new_dbxt, dbxt.__class__)
@dbx_from_env
def test_with_path_root_constructor(self, dbx):
# Verify valid mode types
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment