Debian Codegraph @

tests/test_tips.py

raw
1 from IPython.core.tips import _tips
2
3 import os
4 import pytest
5
6 all_tips = _tips["random"] + list(_tips["every_year"].values())
7
8
9 @pytest.mark.skipif(os.name != "nt", reason="Windows console may crash with Unicode")
10 @pytest.mark.parametrize("tip", all_tips)
11 def test_tips(tip):
12 assert tip.isascii()