From 57bf85875b86ce741517692d599618f6d7a10737 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Mon, 10 Jun 2024 10:48:44 -0700 Subject: [PATCH] fix: hard coded dates to declarative Signed-off-by: Zack Koppert --- test_stale_repos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_stale_repos.py b/test_stale_repos.py index 6244a0b..ec8e305 100644 --- a/test_stale_repos.py +++ b/test_stale_repos.py @@ -317,7 +317,7 @@ def test_get_inactive_repos_with_inactive_repos(self): { "url": "https://github.com/example/repo2", "days_inactive": 40, - "last_push_date": "2024-04-29", + "last_push_date": forty_days_ago.date().isoformat(), "visibility": "private", "days_since_last_release": None, "days_since_last_pr": None, @@ -468,7 +468,7 @@ def test_get_inactive_repos_with_no_organization_set(self): { "url": "https://github.com/example/repo2", "days_inactive": 40, - "last_push_date": "2024-04-29", + "last_push_date": forty_days_ago.date().isoformat(), "visibility": "private", "days_since_last_release": None, "days_since_last_pr": None, @@ -544,7 +544,7 @@ def test_get_inactive_repos_with_default_branch_updated(self): { "url": "https://github.com/example/repo2", "days_inactive": 40, - "last_push_date": "2024-04-29", + "last_push_date": forty_days_ago.date().isoformat(), "visibility": "private", "days_since_last_release": None, "days_since_last_pr": None,