Skip to content
/ testpath Public
forked from jupyter/testpath

Test utilities for Python code working with files and commands

Notifications You must be signed in to change notification settings

minrk/testpath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Test utilities for Python code working with files and commands

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%