python/tests/test_rich.py
backwardspy 8695144d6c
feat!: change palette data structure to match json, add codegen (#29)
Co-authored-by: Raffaele Mancuso <raffaele.mancuso4@unibo.it>
2024-02-17 12:57:04 +00:00

12 lines
490 B
Python

from catppuccin.extras.rich_ctp import latte, mocha
def test_mocha_colors() -> None:
assert mocha.styles["base"].color.triplet.hex == "#1e1e2e" # type: ignore [union-attr]
assert mocha.styles["text"].color.triplet.hex == "#cdd6f4" # type: ignore [union-attr]
def test_latte_colors() -> None:
assert latte.styles["base"].color.triplet.hex == "#eff1f5" # type: ignore [union-attr]
assert latte.styles["text"].color.triplet.hex == "#4c4f69" # type: ignore [union-attr]