MCPcopy
hub / github.com/scrapy/scrapy / test_pformat_old_windows

Function test_pformat_old_windows

tests/test_utils_display.py:45–48  ·  view source on GitHub ↗
(isatty, version)

Source from the content-addressed store, hash-verified

43@mock.patch("platform.version")
44@mock.patch("sys.stdout.isatty")
45def test_pformat_old_windows(isatty, version):
46 isatty.return_value = True
47 version.return_value = "10.0.14392"
48 assert pformat(value) in colorized_strings
49
50
51@mock.patch("sys.platform", "win32")

Callers

nothing calls this directly

Calls 1

pformatFunction · 0.90

Tested by

no test coverage detected