Skip to main content

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.

Documentation on ReadTheDocs

e.g.:

import testpath
testpath.assert_isfile(path)

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

Project details


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.3.1.tar.gz (91.7 kB view details)

Uploaded Source

Built Distribution

testpath-0.3.1-py2.py3-none-any.whl (161.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file testpath-0.3.1.tar.gz.

File metadata

  • Download URL: testpath-0.3.1.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for testpath-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0d5337839c788da5900df70f8e01015aec141aa3fe7936cb0d0a2953f7ac7609
MD5 2cd5ed5522fda781bb497c9d80ae2fc9
BLAKE2b-256 f48bb71e9ee10e5f751e9d959bc750ab122ba04187f5aa52aabdc4e63b0e31a7

See more details on using hashes here.

Provenance

File details

Details for the file testpath-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for testpath-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 039fa6a6c9fd3488f8336d23aebbfead5fa602c4a47d49d83845f55a595ec1b4
MD5 12728181294cf6f815421081d620c494
BLAKE2b-256 1519d7bc380c479a184e4a5a9ce516e4e2a773165f89b445f7cdced83d94de25

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page