Skip to content

Commit

Permalink
remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
redvox committed Nov 26, 2020
1 parent 0fc6de1 commit 6d96442
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/test_core/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,6 @@ def test_login__mfa_error(self, mock_credentials):
self.assertEqual(expected, self.core._renew_session.mock_calls)
self.assertEqual(self.error_result, result)

# @mock.patch('app.core.core.credentials')
# def test_login__mfa_no_token(self, mock_credentials):
# mock_credentials.check_access_key.return_value = get_success_result()
# mock_credentials.check_session.return_value = get_failed_result()
# self.core._renew_session.return_value = get_failed_result()
#
# mock_mfa_callback = Mock()
# mock_mfa_callback.return_value = ''
# result = self.core.login(self.config.get_group('development'), mock_mfa_callback)
#
# expected = [call.check_access_key(), call.check_session()]
# self.assertEqual(expected, mock_credentials.mock_calls)
#
# expected = [call(None)]
# self.assertEqual(expected, self.core._renew_session.mock_calls)
#
# self.assertEqual(False, result.was_success)
# self.assertEqual(True, result.was_error)
# self.assertEqual('some error', result.error_message)

@mock.patch('app.core.core.files')
@mock.patch('app.core.core.credentials')
def test_login__successful_login(self, mock_credentials, _):
Expand Down

0 comments on commit 6d96442

Please sign in to comment.