Skip to content

Commit e84fdf5

Browse files
committed
remove empty space above first row in TestScriptsContainer
1 parent f513938 commit e84fdf5

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/test_cli_output.py

Lines changed: 9 additions & 9 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):
@@ -141,14 +141,14 @@ def test_display_active_purchased_credits(self, mock_console):
141141
bucket = {
142142
"total": 100,
143143
"remaining": 20,
144-
"expiry_date": "2026-06-12T00:00:00+00:00",
144+
"expiry_date": "2028-12-12T00:00:00+00:00",
145145
}
146146
_display_purchased_credit_line(bucket)
147147

148148
call_args = mock_console.print.call_args[0][0]
149149
assert "Purchased" in call_args
150150
assert "20 of 100 remaining" in call_args
151-
assert "expires Jun 12, 2026" in call_args
151+
assert "expires Dec 12, 2028" in call_args
152152

153153
@patch("cli_output.status.console")
154154
def test_display_expired_purchased_credits(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
}

tui/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ TestScriptsContainer {
137137
height: auto;
138138
color: #888;
139139
border: solid #888;
140-
padding-top: 1;
140+
padding-top: 0;
141141
}
142142

143143
.test-scripts-title {

0 commit comments

Comments
 (0)