From e48f407c2032e78b6339a0ae410d79865f5d9f39 Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Wed, 23 Oct 2019 17:07:19 +0000 Subject: [PATCH] show date on failure --- tests/test_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_backup.py b/tests/test_backup.py index 8e760b75..503ce622 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -100,7 +100,7 @@ def test_last_backup_is_recent(server: str) -> bool: date = datetime.strptime(last, "%Y-%m-%d-%H%M%S") # check age if (datetime.now() - date).days > MAX_AGE: - u.error("older than {} days".format(MAX_AGE)) + u.error("older than {} days: {}".format(MAX_AGE, date)) return False u.success("less than {} days old".format(MAX_AGE)) return True -- GitLab