From b5777e05844a25cc5e204b0da2cd5c3bf08eb4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Thu, 6 Jul 2017 23:41:42 +0200 Subject: [PATCH] Remove warnings from the tests --- ihatemoney/tests/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index d788887b..3b964cb1 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -27,6 +27,8 @@ __HERE__ = os.path.dirname(os.path.abspath(__file__)) class BaseTestCase(TestCase): + SECRET_KEY = "TEST SESSION" + def create_app(self): # Pass the test object as a configuration. return create_app(self) @@ -72,16 +74,17 @@ class IhatemoneyTestCase(BaseTestCase): class DefaultConfigurationTestCase(BaseTestCase): + def test_default_configuration(self): """Test that default settings are loaded when no other configuration file is specified""" self.assertFalse(self.app.config['DEBUG']) self.assertEqual(self.app.config['SQLALCHEMY_DATABASE_URI'], 'sqlite://') self.assertFalse(self.app.config['SQLALCHEMY_TRACK_MODIFICATIONS']) - self.assertEqual(self.app.config['SECRET_KEY'], 'tralala') self.assertEqual(self.app.config['MAIL_DEFAULT_SENDER'], ("Budget manager", "budget@notmyidea.org")) + class BudgetTestCase(IhatemoneyTestCase): def test_notifications(self):