MCPcopy
hub / github.com/scrapy/scrapy / test_pformat_windows

Function test_pformat_windows

tests/test_utils_display.py:66–70  ·  view source on GitHub ↗
(isatty, version, terminal_processing)

Source from the content-addressed store, hash-verified

64@mock.patch("platform.version")
65@mock.patch("sys.stdout.isatty")
66def test_pformat_windows(isatty, version, terminal_processing):
67 isatty.return_value = True
68 version.return_value = "10.0.14393"
69 terminal_processing.return_value = True
70 assert pformat(value) in colorized_strings
71
72
73@mock.patch("sys.platform", "linux")

Callers

nothing calls this directly

Calls 1

pformatFunction · 0.90

Tested by

no test coverage detected