Skip to content
Myr

test_compat.py

This file

Path

tests/test_compat.py

14 lines · 426 bytes · Python

Last changed by

Merge pull request #1622 from MLH-Fellowship/1484-redesign-completionDavid Lordbefore adoption6c8301e

History of this file

Take it

1import pytest23from click._compat import should_strip_ansi4from click._compat import WIN567@pytest.mark.xfail(WIN, reason="Jupyter not tested/supported on Windows")8def test_is_jupyter_kernel_output():9    class JupyterKernelFakeStream:10        pass1112    # implementation detail, aka cheapskate test13    JupyterKernelFakeStream.__module__ = "ipykernel.faked"14    assert not should_strip_ansi(stream=JupyterKernelFakeStream())