rich/tests/test_highlighter.py

9 lines
179 B
Python
Raw Normal View History

2020-04-26 15:34:55 +00:00
import pytest
from rich.highlighter import NullHighlighter
def test_wrong_type():
highlighter = NullHighlighter()
with pytest.raises(TypeError):
highlighter([])