diff --git a/tests/__init__.py b/tests/__init__.py index fcfbf6a..3359767 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -135,6 +135,9 @@ class Modeltests(unittest.TestCase): self.session.commit() + # Prevent unit-tests to send email, globally + pagure.APP.config['EMAIL_SEND'] = False + # pylint: disable=C0103 def tearDown(self): """ Remove the test.db database if there is one. """