Skip to content

Commit 4dbc302

Browse files
NejcSclaude
andcommitted
Move hardcoded test dates forward to 2028 to prevent expiry failures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dc98741 commit 4dbc302

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/test_cli_output.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ def test_display_active_free_trial(self, mock_console):
6262
"type": "free",
6363
"total": 50,
6464
"remaining": 4,
65-
"period_end": "2026-06-01T00:00:00+00:00",
65+
"period_end": "2028-12-01T00:00:00+00:00",
6666
}
6767
_display_credit_line(plan_credits)
6868

6969
mock_console.print.assert_called_once()
7070
call_args = mock_console.print.call_args[0][0]
7171
assert "Free trial" in call_args
7272
assert "4 of 50 remaining" in call_args
73-
assert "expires Jun 1, 2026" in call_args
73+
assert "expires Dec 1, 2028" in call_args
7474

7575
@patch("cli_output.status.console")
7676
def test_display_active_pro_plan(self, mock_console):
@@ -110,13 +110,13 @@ def test_display_exhausted_credits(self, mock_console):
110110
"type": "free",
111111
"total": 50,
112112
"remaining": 0,
113-
"period_end": "2026-06-01T00:00:00+00:00",
113+
"period_end": "2028-12-01T00:00:00+00:00",
114114
}
115115
_display_credit_line(plan_credits)
116116

117117
call_args = mock_console.print.call_args[0][0]
118118
assert "0 of 50 remaining" in call_args
119-
assert "expires Jun 1, 2026" in call_args
119+
assert "expires Dec 1, 2028" in call_args
120120

121121
@patch("cli_output.status.console")
122122
def test_timezone_naive_datetime(self, mock_console):
@@ -185,7 +185,7 @@ def test_has_active_plan_credits(self, mock_console):
185185
"""Test when user has active plan credits."""
186186
plan_credits = {
187187
"remaining": 10,
188-
"period_end": "2026-06-01T00:00:00+00:00",
188+
"period_end": "2028-12-01T00:00:00+00:00",
189189
}
190190
_display_status_message(plan_credits, [])
191191

@@ -211,7 +211,7 @@ def test_no_credits_remaining(self, mock_console):
211211
"""Test when user has no credits remaining."""
212212
plan_credits = {
213213
"remaining": 0,
214-
"period_end": "2026-06-01T00:00:00+00:00",
214+
"period_end": "2028-12-01T00:00:00+00:00",
215215
}
216216
_display_status_message(plan_credits, [])
217217

@@ -268,7 +268,7 @@ def test_valid_client_version(self, mock_console, mock_api_class):
268268
"type": "free",
269269
"total": 50,
270270
"remaining": 10,
271-
"period_end": "2026-06-01T00:00:00+00:00",
271+
"period_end": "2028-12-01T00:00:00+00:00",
272272
},
273273
"purchased_credits": [],
274274
}

0 commit comments

Comments
 (0)