Navigation

  • index
  • modules |
  • next |
  • Testpath 0.4.4 documentation »
  • Testpath

Testpath¶

Testpath is a collection of utilities for testing code which uses and manipulates the filesystem and system commands.

Install it with:

pip install testpath

Contents:

  • Assertion functions for the filesystem
    • assert_path_exists()
    • assert_not_path_exists()
    • assert_isfile()
    • assert_not_isfile()
    • assert_isdir()
    • assert_not_isdir()
    • assert_islink()
    • assert_not_islink()
    • Unix specific
  • Mocking system commands
    • assert_calls()
    • MockCommand
  • Modifying environment variables
    • modified_env()
    • temporary_env()
    • make_env_restorer()
  • Utilities for temporary directories
    • NamedFileInTemporaryDirectory
    • TemporaryWorkingDirectory
  • Release notes

Indices and tables¶

  • Index

  • Search Page

Table of Contents

  • Testpath
  • Indices and tables

Next topic

Assertion functions for the filesystem

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • next |
  • Testpath 0.4.4 documentation »
  • Testpath
© Copyright 2023, Jupyter Development Team. Created using Sphinx 7.2.6.