mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Implement a basic test with cookies.bake()
This commit is contained in:
parent
bea23a7a91
commit
6c339a1417
23
tests/test_cookiecutter_generation.py
Normal file
23
tests/test_cookiecutter_generation.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pytest
|
||||
|
||||
@pytest.fixture
|
||||
def context():
|
||||
return {
|
||||
"project_name": "My Test Project",
|
||||
"repo_name": "my_test_project",
|
||||
"author_name": "Test Author",
|
||||
"email": "test@example.com",
|
||||
"description": "A short description of the project.",
|
||||
"domain_name": "example.com",
|
||||
"version": "0.1.0",
|
||||
"timezone": "UTC",
|
||||
"now": "2015/01/13",
|
||||
"year": "2015"
|
||||
}
|
||||
|
||||
|
||||
def test_default_configuration(cookies, context):
|
||||
result = cookies.bake(extra_context=context)
|
||||
assert result.exit_code == 0
|
Loading…
Reference in New Issue
Block a user