Skip to main content

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.

Documentation on ReadTheDocs

e.g.:

import testpath
testpath.assert_isfile(path)

with testpath.assert_calls('git', ['add', path]):
    function_under_test()

Metadata

Release files for testpath 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testpath 0.5.0
File Size Uploaded Provenance Actions
testpath-0.5.0.tar.gz 94.0 kB Without provenance Details for testpath-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for testpath 0.5.0
File Interpreter ABI Platform Actions
testpath-0.5.0-py3-none-any.whl Python 3 none any Details for testpath-0.5.0-py3-none-any.whl

Total release size: 178.9 kB

Release files / testpath-0.5.0.tar.gz

Download URL testpath-0.5.0.tar.gz
Size 94.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417
BLAKE2b-256 checksum
How to use checksums
ddbf245f32010f761aaeff132278e91e0d0ae1c360d6f3708a11790fdc1410d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / testpath-0.5.0-py3-none-any.whl

Download URL testpath-0.5.0-py3-none-any.whl
Size 84.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8044f9a0bab6567fc644a3593164e872543bb44225b0e24846e2c89237937589
BLAKE2b-256 checksum
How to use checksums
ac875422f6d056bfbded920ccf380a65de3713a3b95a95ba2255be2a3fb4f464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Security for testpath 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page