| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1256,6 +1256,15 @@ def test_html_output_year_css(self): | |||
| 1256 | 1256 | self.assertIn(b'<link rel="stylesheet" href="custom.css">', output) | |
| 1257 | 1257 | ||
| 1258 | 1258 | ||
| 1259 | + @support.force_colorized_test_class | ||
| 1260 | + class ColorTestCase(unittest.TestCase): | ||
| 1261 | + def test_formatmonth_color(self): | ||
| 1262 | + today = datetime.date(2026, 5, 4) | ||
| 1263 | + cal = calendar._CLIDemoCalendar(highlight_day=today) | ||
| 1264 | + output = cal.formatmonth(2026, 5) | ||
| 1265 | + self.assertIn("\x1b[30m\x1b[43mMay 2026\x1b[0m\n\x1b[36m", output) | ||
| 1266 | + | ||
| 1267 | + | ||
| 1259 | 1268 | class MiscTestCase(unittest.TestCase): | |
| 1260 | 1269 | def test__all__(self): | |
| 1261 | 1270 | not_exported = { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments