Skip to content

0.6.0

Compare
Choose a tag to compare
@hackebrot hackebrot released this 24 May 10:59

Update dependencies and require Python 3.6 or newer. Return a pathlib.Path to the generated project via Result.project_path and add deprecation warning for Result.project:

def test_bake_project(cookies):
    result = cookies.bake(extra_context={"repo_name": "helloworld"})

    assert result.exit_code == 0
    assert result.exception is None

    assert result.project_path.name == "helloworld"
    assert result.project_path.is_dir()

    # The `project` attribute is deprecated
    assert result.project.basename == "helloworld"
    assert result.project.isdir()