{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Testpath provides utilities for testing code that interacts with files and system commands, including filesystem assertions and mocking of command-line calls.","skillfed_tags":["filesystem-testing","command-mocking"],"use_cases":["Verify that your code creates or modifies expected files during testing without leaving test artifacts.","Mock and record calls to system commands like git, ensuring your code invokes them with correct arguments.","Assert filesystem state in unit tests\u2014check that a file exists or is a directory.","Test code that shells out to external tools by capturing and validating command invocations.","Build test suites for file-processing utilities that need to verify output files and side effects."],"what_it_does":"Testpath is a small testing utility library that provides helpers for code that needs to verify filesystem state and mock system command execution. It offers functions like `assert_isfile()` to check file existence and a context manager to record and verify calls to external commands like `git`. The package has no runtime dependencies, making it lightweight to add to test suites.\n\nIt's designed for developers writing tests that interact with the filesystem or shell commands\u2014situations where you want to verify that your code called the right external tools or created the expected files. The library sits in the Jupyter ecosystem and is used by projects that need reliable, simple assertions for file and command testing.","worth_installing":"Yes, if you're testing code that touches the filesystem or calls system commands. It's lightweight, permissively licensed, and has no dependencies. The aging maintenance status is a minor concern\u2014the package is stable and unlikely to need frequent updates\u2014but verify compatibility with your test framework before committing to it in a new project."},"id":"testpath","links":{"html":"https://skillfed.io/packages/testpath","md":"https://skillfed.io/packages/testpath.md","pypi":"https://pypi.org/project/testpath/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-02-23","license_spdx":null,"license_treatment":"permissive","name":"testpath","python_support":"supports_current","summary":"Test utilities for code working with files and commands"},"popularity":{"monthly_downloads":1766957,"position":3577,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
