{"library":"pytest-cookies","title":"pytest-cookies","description":"A pytest plugin for testing Cookiecutter templates. It provides a `cookies` fixture that wraps the Cookiecutter API for generating projects, making it easy to verify templates work as expected. Current version 0.7.0 supports Python >=3.7 and Cookiecutter >=2.1.0. Releases are infrequent but stable.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytest-cookies"],"cli":null},"imports":["from pytest_cookies.plugin import Cookies, Result"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\n\ndef test_bake_project(cookies):\n    result = cookies.bake(extra_context={\"repo_name\": \"helloworld\"})\n    assert result.exit_code == 0\n    assert result.exception is None\n    assert result.project_path.name == \"helloworld\"\n    assert result.project_path.is_dir()","lang":"python","description":"Basic test for a Cookiecutter template using the cookies fixture.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}