Browse Source

deactivate test_resetpassword for good

philippe 6 years ago
parent
commit
85fbb13c9e
1 changed files with 21 additions and 21 deletions
  1. 21 21
      tracim/tracim/tests/library/test_resetpassword.py

+ 21 - 21
tracim/tracim/tests/library/test_resetpassword.py View File

@@ -16,25 +16,25 @@ class TestResetPassword(TestStandard):
16 16
     # [1] no admin calendar: https://github.com/tracim/tracim/issues/274
17 17
     # Deactivating it solves this odd issue, probably due to improper
18 18
     # individual test environment setup in tests sequence.
19
-    def deactivated_test_unit__plain_send_mail__ok(self):
20
-        if sys.version_info >= (3, 5):
21
-            from smtplib import SMTPNotSupportedError
19
+    #def deactivated_test_unit__plain_send_mail__ok(self):
20
+    #    if sys.version_info >= (3, 5):
21
+    #        from smtplib import SMTPNotSupportedError
22 22
 
23
-            assert_raises(
24
-                (ConnectionRefusedError, SMTPNotSupportedError),
25
-                _plain_send_mail,
26
-                'Name of sender <email@sender.local>',
27
-                'Recipient name <recipient@recipient.local>',
28
-                'hello',
29
-                'How are you ?',
30
-            )
31
-        else:
32
-            from smtplib import SMTPException
33
-            assert_raises(
34
-                (SMTPException, ConnectionRefusedError),
35
-                _plain_send_mail,
36
-                'Name of sender <email@sender.local>',
37
-                'Recipient name <recipient@recipient.local>',
38
-                'hello',
39
-                'How are you ?',
40
-            )
23
+    #        assert_raises(
24
+    #            (ConnectionRefusedError, SMTPNotSupportedError),
25
+    #            _plain_send_mail,
26
+    #            'Name of sender <email@sender.local>',
27
+    #            'Recipient name <recipient@recipient.local>',
28
+    #            'hello',
29
+    #            'How are you ?',
30
+    #        )
31
+    #    else:
32
+    #        from smtplib import SMTPException
33
+    #        assert_raises(
34
+    #            (SMTPException, ConnectionRefusedError),
35
+    #            _plain_send_mail,
36
+    #            'Name of sender <email@sender.local>',
37
+    #            'Recipient name <recipient@recipient.local>',
38
+    #            'hello',
39
+    #            'How are you ?',
40
+    #        )