Skip to content

Commit

Permalink
documentation for argv and stdin fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ejgroene committed Oct 16, 2024
1 parent 5e713a3 commit 6ef2d9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ There are standard fixtures for:
#) test - gives access to the current tester, useful for anonymous subtesters,
#) stdout - captures ``sys.stdout``, including that of subprocesses, in a ``StringIO``,
#) stderr - captures ``sys.stderr``, including that of subprocesses, in a ``StringIO``,
#) stdin - replaces ``sys.stdin`` temporarily with a ``StringIO``. Make sure to ``seek(0)`` after writing.
#) argv - saves ``sys.argv`` and restores it afterwards.
#) tmp_path:subpath - creates a temporary ``pathlib.Path`` object, optionally with a subpath,
#) raises:(Exception, message) - raises AssertionError if given code does not raise given exception with given message,
#) guard - isolates tests by saving and restoring sys.path, sys.meta_path, and sys.modules.
Expand Down

0 comments on commit 6ef2d9b

Please sign in to comment.