File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 26
26
from dropbox .exceptions import (
27
27
ApiError ,
28
28
AuthError ,
29
- BadInputError ,
29
+ # BadInputError,
30
30
PathRootError ,
31
31
)
32
32
from dropbox .files import (
@@ -153,9 +153,12 @@ def test_default_oauth2_urls(self):
153
153
def test_bad_auth (self ):
154
154
# Test malformed token
155
155
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 ,):
157
161
malformed_token_dbx .files_list_folder ('' )
158
- assert 'token is malformed' in cm .value .message
159
162
160
163
# Test reasonable-looking invalid token
161
164
invalid_token_dbx = Dropbox (INVALID_TOKEN )
You can’t perform that action at this time.
0 commit comments