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.1.tar.gz
(92.7 kB
view details)
Built Distribution
testpath-0.4.1-py2.py3-none-any.whl
(163.4 kB
view details)
File details
Details for the file testpath-0.4.1.tar.gz
.
File metadata
- Download URL: testpath-0.4.1.tar.gz
- Upload date:
- Size: 92.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4824c689b97e3cfc76b440add3d20a4bb28a671079787a3d07a6bc3ba3d1eca |
|
MD5 | 37c2dc7d1fcd6632255cf4502c3b2a3e |
|
BLAKE2b-256 | a6f908ff55ac636b40a2b542988483f50af26d7116ad45808ab1758739c9c63d |
Provenance
File details
Details for the file testpath-0.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: testpath-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 163.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f1fd7f5a7c0818cbef702c5c43c0c73a88c40d3d90e9cc7df4106295dc1ad3 |
|
MD5 | ea28801e85092110b1033235238029cf |
|
BLAKE2b-256 | 6219bb5986dabec5a49c9172dfe2781e39b0f3b35040221c18f6b413b052448f |