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,