Skip to content

Commit ee077d2

Browse files
committed
temporary fix for backend change
1 parent 13d9843 commit ee077d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/integration/test_dropbox.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from dropbox.exceptions import (
2727
ApiError,
2828
AuthError,
29-
BadInputError,
29+
# BadInputError,
3030
PathRootError,
3131
)
3232
from dropbox.files import (
@@ -153,9 +153,12 @@ def test_default_oauth2_urls(self):
153153
def test_bad_auth(self):
154154
# Test malformed token
155155
malformed_token_dbx = Dropbox(MALFORMED_TOKEN)
156-
with pytest.raises(BadInputError,) as cm:
156+
# TODO: backend is no longer returning `BadInputError`
157+
# with pytest.raises(BadInputError,) as cm:
158+
# malformed_token_dbx.files_list_folder('')
159+
# assert 'token is malformed' in cm.value.message
160+
with pytest.raises(AuthError,):
157161
malformed_token_dbx.files_list_folder('')
158-
assert 'token is malformed' in cm.value.message
159162

160163
# Test reasonable-looking invalid token
161164
invalid_token_dbx = Dropbox(INVALID_TOKEN)

0 commit comments

Comments
 (0)