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

Uploaded Source

Built Distribution

testpath-0.5.0-py3-none-any.whl (84.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testpath-0.5.0.tar.gz
  • Upload date:
  • Size: 94.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for testpath-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417
MD5 b3a41d75aadeab905f7014a3189e852b
BLAKE2b-256 ddbf245f32010f761aaeff132278e91e0d0ae1c360d6f3708a11790fdc1410d2

See more details on using hashes here.

Provenance

File details

Details for the file testpath-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: testpath-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 84.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for testpath-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8044f9a0bab6567fc644a3593164e872543bb44225b0e24846e2c89237937589
MD5 9a6e98b45f627d158ac30af6b90cad76
BLAKE2b-256 ac875422f6d056bfbded920ccf380a65de3713a3b95a95ba2255be2a3fb4f464

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