File: test_typing.py

package info (click to toggle)
pytest-subprocess 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 444 kB
  • sloc: python: 2,319; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
"""Additional target for mypy type checking"""

from pytest_subprocess import FakeProcess


def test_typing() -> None:
    fp = FakeProcess()
    cmd = ["ls", "-l"]
    output = ["some", "lines", "of", "output"]
    fp.register(cmd, stdout=output)