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

Uploaded Source

Built Distribution

testpath-0.4.2-py2.py3-none-any.whl (163.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for testpath-0.4.2.tar.gz
Algorithm Hash digest
SHA256 b694b3d9288dbd81685c5d2e7140b81365d46c29f5db4bc659de5aa6b98780f8
MD5 562d0e1b02fc5cbcb8406955bcd7249f
BLAKE2b-256 06309a7e917066d851d8b4117e85794b5f14516419ea714a8a2681ec6aa8a981

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: testpath-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 163.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for testpath-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46c89ebb683f473ffe2aab0ed9f12581d4d078308a3cb3765d79c6b2317b0109
MD5 4128c6f88528e9cf5c7f6f40359e8380
BLAKE2b-256 bea4162f9ebb6489421fe46dcca2ae420369edfee4b563c668d93cb4605d12ba

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