aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorrr-2016-09-10 10:12:43 +0200
committerrr-2016-09-10 10:12:43 +0200
commitc516030c66cf7cece87bdca49da0e21c427fcb71 (patch)
treecfb25415a59f3ad4c6dcd881d813283a814aba0f /server
parent2c283f30583fac8cd17a1600dab0a8c895dbce44 (diff)
server/tests: fix info api tests
Diffstat (limited to 'server')
-rw-r--r--server/szurubooru/tests/api/test_info.py8
1 files 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,
}

© 2015 - 2026 Jakob L. Kreuze