From c516030c66cf7cece87bdca49da0e21c427fcb71 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 10 Sep 2016 10:12:43 +0200 Subject: [PATCH] server/tests: fix info api tests --- server/szurubooru/tests/api/test_info.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/szurubooru/tests/api/test_info.py b/server/szurubooru/tests/api/test_info.py index 5812658..be8c941 100644 --- a/server/szurubooru/tests/api/test_info.py +++ b/server/szurubooru/tests/api/test_info.py @@ -44,23 +44,23 @@ def test_info_api( 'config': expected_config_key, } directory.join('test2.txt').write('abc') - with fake_datetime('2016-01-01 13:59'): + with fake_datetime('2016-01-03 12:59'): assert api.info_api.get_info(context_factory()) == { 'postCount': 2, 'diskUsage': 3, # still 3 - it's cached 'featuredPost': None, 'featuringTime': None, 'featuringUser': None, - 'serverTime': datetime(2016, 1, 1, 13, 59), + 'serverTime': datetime(2016, 1, 3, 12, 59), 'config': expected_config_key, } - with fake_datetime('2016-01-01 14:01'): + with fake_datetime('2016-01-03 13:01'): assert api.info_api.get_info(context_factory()) == { 'postCount': 2, 'diskUsage': 6, # cache expired 'featuredPost': None, 'featuringTime': None, 'featuringUser': None, - 'serverTime': datetime(2016, 1, 1, 14, 1), + 'serverTime': datetime(2016, 1, 3, 13, 1), 'config': expected_config_key, }