mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Remove warnings from the tests
This commit is contained in:
parent
dfadc13801
commit
b5777e0584
1 changed files with 4 additions and 1 deletions
|
@ -27,6 +27,8 @@ __HERE__ = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
class BaseTestCase(TestCase):
|
class BaseTestCase(TestCase):
|
||||||
|
|
||||||
|
SECRET_KEY = "TEST SESSION"
|
||||||
|
|
||||||
def create_app(self):
|
def create_app(self):
|
||||||
# Pass the test object as a configuration.
|
# Pass the test object as a configuration.
|
||||||
return create_app(self)
|
return create_app(self)
|
||||||
|
@ -72,16 +74,17 @@ class IhatemoneyTestCase(BaseTestCase):
|
||||||
|
|
||||||
|
|
||||||
class DefaultConfigurationTestCase(BaseTestCase):
|
class DefaultConfigurationTestCase(BaseTestCase):
|
||||||
|
|
||||||
def test_default_configuration(self):
|
def test_default_configuration(self):
|
||||||
"""Test that default settings are loaded when no other configuration file is specified"""
|
"""Test that default settings are loaded when no other configuration file is specified"""
|
||||||
self.assertFalse(self.app.config['DEBUG'])
|
self.assertFalse(self.app.config['DEBUG'])
|
||||||
self.assertEqual(self.app.config['SQLALCHEMY_DATABASE_URI'], 'sqlite://')
|
self.assertEqual(self.app.config['SQLALCHEMY_DATABASE_URI'], 'sqlite://')
|
||||||
self.assertFalse(self.app.config['SQLALCHEMY_TRACK_MODIFICATIONS'])
|
self.assertFalse(self.app.config['SQLALCHEMY_TRACK_MODIFICATIONS'])
|
||||||
self.assertEqual(self.app.config['SECRET_KEY'], 'tralala')
|
|
||||||
self.assertEqual(self.app.config['MAIL_DEFAULT_SENDER'],
|
self.assertEqual(self.app.config['MAIL_DEFAULT_SENDER'],
|
||||||
("Budget manager", "budget@notmyidea.org"))
|
("Budget manager", "budget@notmyidea.org"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class BudgetTestCase(IhatemoneyTestCase):
|
class BudgetTestCase(IhatemoneyTestCase):
|
||||||
|
|
||||||
def test_notifications(self):
|
def test_notifications(self):
|
||||||
|
|
Loading…
Reference in a new issue