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

Uploaded Source

Built Distribution

testpath-0.4.3-py2.py3-none-any.whl (164.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for testpath-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a15a90476b3b0eae847b132431567942b439a349da2769dd54774c34fb9cf7b4
MD5 979f39286242987db6438a16fbe46d9e
BLAKE2b-256 4bbc8f6b08004266976235b53510aa9833a19b65ee8ebc251e699a8ba067ee0f

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for testpath-0.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c37791fd70f4386d1a85852e7dde06531b87557e47a3788a0ff0cff84fff9dc4
MD5 ec88ee108eb473109d3f58cb0e0e733c
BLAKE2b-256 a2b9ff8363f50a92c4be3b9d316b5d77951aa7ce9dba229e4ec9c6c08ff19936

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