Skip to content

Commit 73d2685

Browse files
committed
Fix tests by properly mocking 'input' instead of raw_input.
Also fix up comments in auth/__init__.py
1 parent d1dcf72 commit 73d2685

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boxsdk/auth/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
try:
1313
from .redis_managed_oauth2 import RedisManagedOAuth2
1414
except ImportError:
15-
RedisManagedOAuth2 = None # If extras[redis] are not installed, JWTAuth won't be available.
15+
RedisManagedOAuth2 = None # If extras[redis] are not installed, RedisManagedOAuth2 won't be available.
1616
try:
1717
from .redis_managed_jwt_auth import RedisManagedJWTAuth
1818
except ImportError:
19-
RedisManagedJWTAuth = None # If extras[jwt,redis] are not installed, JWTAuth won't be available.
19+
RedisManagedJWTAuth = None # If extras[jwt,redis] are not installed, RedisManagedJWTAuth won't be available.
2020
from .remote_managed_oauth2 import RemoteOAuth2

test/unit/auth/test_developer_token_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_developer_token_auth_calls_callback_during_init_and_refresh(access_toke
1919

2020

2121
def test_developer_token_auth_uses_raw_input_by_default(access_token):
22-
with patch('boxsdk.auth.developer_token_auth.raw_input', create=True) as mock_raw_input:
22+
with patch('boxsdk.auth.developer_token_auth.input', create=True) as mock_raw_input:
2323
mock_raw_input.return_value = access_token
2424
auth = developer_token_auth.DeveloperTokenAuth()
2525
mock_raw_input.assert_called_once_with(auth.ENTER_TOKEN_PROMPT)

0 commit comments

Comments
 (0)