Sending OAuth Server errors to the log instead of printing to stdout

This commit is contained in:
Michael Lazar
2018-03-20 14:04:03 -04:00
parent f4cdebfa98
commit be4c9c125f
3 changed files with 16 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ def test_oauth_authorize(oauth, reddit, stdscr, refresh_token):
# function in the destination oauth module and not the helpers module
with mock.patch('uuid.UUID.hex', new_callable=mock.PropertyMock) as uuid, \
mock.patch('rtv.terminal.Terminal.open_browser') as open_browser, \
mock.patch('rtv.oauth.HTTPServer') as http_server, \
mock.patch('rtv.oauth.OAuthHTTPServer') as http_server, \
mock.patch.object(oauth.reddit, 'user'), \
mock.patch('time.sleep'):