From d85e746a656ca213bad8ce8a725e734990b73f72 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 Jul 2018 09:42:13 +0200 Subject: [PATCH] server/tests: fix failing info api tests --- server/szurubooru/tests/api/test_info.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/szurubooru/tests/api/test_info.py b/server/szurubooru/tests/api/test_info.py index b4ee52cc..cd157273 100644 --- a/server/szurubooru/tests/api/test_info.py +++ b/server/szurubooru/tests/api/test_info.py @@ -10,6 +10,9 @@ def test_info_api( auth_user = user_factory(rank=model.User.RANK_REGULAR) anon_user = user_factory(rank=model.User.RANK_ANONYMOUS) config_injector({ + 'name': 'test installation', + 'contact_email': 'test@example.com', + 'enable_safety': True, 'data_dir': str(directory), 'user_name_regex': '1', 'password_regex': '2', @@ -21,11 +24,17 @@ def test_info_api( 'test_key2': 'test_value2', 'posts:view:featured': 'regular', }, + 'smtp': { + 'host': 'example.com', + } }) db.session.add_all([post_factory(), post_factory()]) db.session.flush() expected_config_key = { + 'name': 'test installation', + 'contactEmail': 'test@example.com', + 'enableSafety': True, 'userNameRegex': '1', 'passwordRegex': '2', 'tagNameRegex': '3', @@ -36,6 +45,7 @@ def test_info_api( 'testKey2': 'test_value2', 'posts:view:featured': 'regular', }, + 'canSendMails': True } with fake_datetime('2016-01-01 13:00'):