1 2 3 4 5 6 7
import sys def test_no_tty(): assert not sys.stdin.isatty() assert not sys.stdout.isatty() assert not sys.stderr.isatty()