Skip to content

0.3.0

Compare
Choose a tag to compare
@hackebrot hackebrot released this 15 Oct 09:46
· 138 commits to main since this release

Add capability to specify the template directory via bake().

@pytest.fixture
def custom_template():
return "templates/minimal/"


def test_bake_custom_project(cookies, custom_template):
    """Test for generating a new project."""
    result = cookies.bake(template=custom_template)

    assert result.exit_code == 0
    assert result.exception is None
    assert result.project.basename == 'example-project'
    assert result.project.isdir()

Please see the documentation for more information.