From 8033eade3cc47759344cd15ef0bbbcc753203664 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 28 Dec 2020 16:34:43 +0000 Subject: [PATCH] test palette --- tests/test_palette.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test_palette.py diff --git a/tests/test_palette.py b/tests/test_palette.py new file mode 100644 index 00000000..7a11f4ee --- /dev/null +++ b/tests/test_palette.py @@ -0,0 +1,8 @@ +from rich._palettes import STANDARD_PALETTE +from rich.table import Table + + +def test_rich_cast(): + table = STANDARD_PALETTE.__rich__() + assert isinstance(table, Table) + assert table.row_count == 16 \ No newline at end of file