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()
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.6.0.tar.gz
(93.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
testpath-0.6.0-py3-none-any.whl
(83.9 kB
view details)
File details
Details for the file testpath-0.6.0.tar.gz.
File metadata
- Download URL: testpath-0.6.0.tar.gz
- Upload date:
- Size: 93.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f
|
|
| MD5 |
9fd4339f76da12d15bc718e4aa2566e9
|
|
| BLAKE2b-256 |
08ada3e7d580902f57e31d2181563fc4088894692bb6ef79b816344f27719cdc
|
File details
Details for the file testpath-0.6.0-py3-none-any.whl.
File metadata
- Download URL: testpath-0.6.0-py3-none-any.whl
- Upload date:
- Size: 83.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ada9f80a2ac6fb0391aa7cdb1a7d11cfa8429f693eda83f74dde570fe6fa639
|
|
| MD5 |
281de6bcd32e45d9408010d9c3df8ca7
|
|
| BLAKE2b-256 |
86431ebfb29c2ca1df2bdb33dbcb2b526b77ee96873ba7b9e25650ddd4ae7156
|