MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / test_isatty

Function test_isatty

qrcode/tests/test_script.py:15–17  ·  view source on GitHub ↗
(mock_print_ascii)

Source from the content-addressed store, hash-verified

13@mock.patch("os.isatty", lambda *args: True)
14@mock.patch("qrcode.main.QRCode.print_ascii")
15def test_isatty(mock_print_ascii):
16 main(["testtext"])
17 mock_print_ascii.assert_called_with(tty=True)
18
19
20@mock.patch("os.isatty", lambda *args: False)

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected