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 details)
Built Distribution
testpath-0.4.4-py2.py3-none-any.whl
(163.9 kB
view details)
File details
Details for the file testpath-0.4.4.tar.gz
.
File metadata
- Download URL: testpath-0.4.4.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 | 60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e |
|
MD5 | 297100d49a6f20859383434a182cf426 |
|
BLAKE2b-256 | 2cb35d57205e896d8998d77ad12aa42ebce75cd97d8b9a97d00ba078c4c9ffeb |
Provenance
File details
Details for the file testpath-0.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: testpath-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 163.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfcf9411ef4bf3db7579063e0546938b1edda3d69f4e1fb8756991f5951f85d4 |
|
MD5 | 5e03fa02495b35f9c33a3303ebe10349 |
|
BLAKE2b-256 | 1b9e1a170feaa54f22aeb5a5d16c9015e82234275a3c8ab630b552493f9cb8a9 |