Test utilities for Python code working with files and commands
Python
Latest commit 6838503 Jan 9, 2017 @takluyver takluyver committed on GitHub Merge pull request #8 from QuLogic/pathlib2
Use pathlib2 instead of pathlib.
Permalink
Failed to load latest commit information.
doc
testpath Use pathlib2 instead of pathlib. Jan 8, 2017
tests Use pathlib2 instead of pathlib. Jan 8, 2017
.gitignore
.travis.yml Use pathlib2 instead of pathlib. Jan 8, 2017
LICENSE
README.rst Convert readthedocs links for their .org -> .io migration for hosted … Oct 9, 2016
flit.ini Update metadata to refer to Jupyter as the author May 8, 2015

README.rst

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()