Test utilities for code working with files and commands
Project description
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.
e.g.:
import testpath testpath.assert_isfile(path) with testpath.assert_calls('git', ['add', path]): function_under_test()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testpath-0.4.4.tar.gz
(92.9 kB
view hashes)
Built Distribution
testpath-0.4.4-py2.py3-none-any.whl
(163.9 kB
view hashes)
Close
Hashes for testpath-0.4.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfcf9411ef4bf3db7579063e0546938b1edda3d69f4e1fb8756991f5951f85d4 |
|
MD5 | 5e03fa02495b35f9c33a3303ebe10349 |
|
BLAKE2b-256 | 1b9e1a170feaa54f22aeb5a5d16c9015e82234275a3c8ab630b552493f9cb8a9 |