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

Uploaded Source

Built Distribution

testpath-0.6.0-py3-none-any.whl (83.9 kB view details)

Uploaded Python 3

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

Hashes for testpath-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f
MD5 9fd4339f76da12d15bc718e4aa2566e9
BLAKE2b-256 08ada3e7d580902f57e31d2181563fc4088894692bb6ef79b816344f27719cdc

See more details on using hashes here.

Provenance

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

Hashes for testpath-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ada9f80a2ac6fb0391aa7cdb1a7d11cfa8429f693eda83f74dde570fe6fa639
MD5 281de6bcd32e45d9408010d9c3df8ca7
BLAKE2b-256 86431ebfb29c2ca1df2bdb33dbcb2b526b77ee96873ba7b9e25650ddd4ae7156

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