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.3.tar.gz
(92.9 kB
view details)
Built Distribution
testpath-0.4.3-py2.py3-none-any.whl
(164.0 kB
view details)
File details
Details for the file testpath-0.4.3.tar.gz
.
File metadata
- Download URL: testpath-0.4.3.tar.gz
- Upload date:
- Size: 92.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15a90476b3b0eae847b132431567942b439a349da2769dd54774c34fb9cf7b4 |
|
MD5 | 979f39286242987db6438a16fbe46d9e |
|
BLAKE2b-256 | 4bbc8f6b08004266976235b53510aa9833a19b65ee8ebc251e699a8ba067ee0f |
Provenance
File details
Details for the file testpath-0.4.3-py2.py3-none-any.whl
.
File metadata
- Download URL: testpath-0.4.3-py2.py3-none-any.whl
- Upload date:
- Size: 164.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37791fd70f4386d1a85852e7dde06531b87557e47a3788a0ff0cff84fff9dc4 |
|
MD5 | ec88ee108eb473109d3f58cb0e0e733c |
|
BLAKE2b-256 | a2b9ff8363f50a92c4be3b9d316b5d77951aa7ce9dba229e4ec9c6c08ff19936 |