/opt/imh-python/lib/python3.9/site-packages/IPython/lib/tests
NameSizeModeActions
__pycache__/-0755rm
test.wav441440644editdlrm
test_backgroundjobs.py26980644editdlrm
test_clipboard.py6300644editdlrm
test_deepreload.py18540644editdlrm
test_display.py93130644editdlrm
test_editorhooks.py8840644editdlrm
test_imports.py2730644editdlrm
test_latextools.py57360644editdlrm
test_lexers.py60170644editdlrm
test_pretty.py148900644editdlrm
test_pygments.py8240644editdlrm
__init__.py00644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/IPython/lib/tests/test_pygments.py (824B)
from typing import List import pytest import pygments.lexers import pygments.lexer from IPython.lib.lexers import IPythonConsoleLexer, IPythonLexer, IPython3Lexer #: the human-readable names of the IPython lexers with ``entry_points`` EXPECTED_LEXER_NAMES = [ cls.name for cls in [IPythonConsoleLexer, IPythonLexer, IPython3Lexer] ] @pytest.fixture def all_pygments_lexer_names() -> List[str]: """Get all lexer names registered in pygments.""" return {l[0] for l in pygments.lexers.get_all_lexers()} @pytest.mark.parametrize("expected_lexer", EXPECTED_LEXER_NAMES) def test_pygments_entry_points( expected_lexer: str, all_pygments_lexer_names: List[str] ) -> None: """Check whether the ``entry_points`` for ``pygments.lexers`` are correct.""" assert expected_lexer in all_pygments_lexer_names