summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-01-20 16:51:18 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-01-21 12:10:19 -0200
commit3d3c620ac53de1c407ff2ff222d923310770ed62 (patch)
treef673d134790852c7a4067cf83096c163269ca260 /service/test/unit
parenteab5d66e82aad5dc54f64e769fd460d4adbeaedf (diff)
Re-raise the same exception to keep context
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/config/test_leap.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/test/unit/config/test_leap.py b/service/test/unit/config/test_leap.py
index 29f19f2f..3cfa43f2 100644
--- a/service/test/unit/config/test_leap.py
+++ b/service/test/unit/config/test_leap.py
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-from leap.soledad.common.errors import InvalidAuthTokenError
from mock import MagicMock, patch, Mock
from twisted.trial import unittest
from twisted.internet import defer
@@ -170,7 +169,7 @@ class TestUserBootstrap(unittest.TestCase):
@patch('pixelated.config.leap.create_leap_session')
@patch('pixelated.config.leap.log.warn')
@defer.inlineCallbacks
- def test__setup__should_close_leap_sesson_on_error_from__setup_user_services(self, mock_logger_warn, mock_create_leap_session, mock_setup_user_services):
+ def test__setup__should_close_leap_session_on_error_from__setup_user_services(self, mock_logger_warn, mock_create_leap_session, mock_setup_user_services):
leap_session = Mock()
leap_session.close = Mock()
mock_create_leap_session.return_value = leap_session
@@ -184,7 +183,7 @@ class TestUserBootstrap(unittest.TestCase):
@patch('pixelated.config.leap.create_leap_session')
@patch('pixelated.config.leap.log.warn')
@defer.inlineCallbacks
- def test__setup__should_close_leap_sesson_on_error_from__add_welcome_email(self, mock_logger_warn, mock_create_leap_session, _, mock_add_welcome_email):
+ def test__setup__should_close_leap_session_on_error_from__add_welcome_email(self, mock_logger_warn, mock_create_leap_session, _, mock_add_welcome_email):
leap_session = Mock()
leap_session.close = Mock()
mock_create_leap_session.return_value = leap_session