testpath 0.6.0


pip install testpath

  Latest version

Released: Feb 23, 2022


Meta
Author: Jupyter Development Team
Requires Python: >= 3.5

Classifiers

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Programming Language
  • Python
  • Python :: 3

Topic
  • Software Development :: Testing

Testpath is a collection of utilities for Python code working with files and commands.

It contains functions to check things on the filesystem, and tools for mocking system commands and recording calls to those.

Documentation on ReadTheDocs

e.g.:

import testpath
testpath.assert_isfile(path)

with testpath.assert_calls('git', ['add', path]):
    function_under_test()

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies: