mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
adding individual test methods, fixed typo.
This commit is contained in:
parent
34d56787c4
commit
9e3a92e3ee
|
@ -1,5 +1,4 @@
|
|||
import re
|
||||
|
||||
from __future__ import absolute_import
|
||||
import sh
|
||||
|
||||
from .base import DjangoCookieTestCase
|
||||
|
@ -8,12 +7,24 @@ from .base import DjangoCookieTestCase
|
|||
class TestCookiecutterSubstitution(DjangoCookieTestCase):
|
||||
"""Test that all cookiecutter instances are substituted"""
|
||||
|
||||
def test_all_cookiecutter_instances_are_substituted(self):
|
||||
def test_default_configuration(self):
|
||||
# Build a list containing absolute paths to the generated files
|
||||
paths = self.generate_project()
|
||||
self.check_paths(paths)
|
||||
|
||||
def test_flake8_complaince(self):
|
||||
def test_maildump_enabled(self):
|
||||
paths = self.generate_project(extra_context={'use_maildump': 'y'})
|
||||
self.check_paths(paths)
|
||||
|
||||
def test_celery_enabled(self):
|
||||
paths = self.generate_project(extra_context={'use_celery': 'y'})
|
||||
self.check_paths(paths)
|
||||
|
||||
def test_windows_enabled(self):
|
||||
paths = self.generate_project(extra_context={'windows': 'y'})
|
||||
self.check_paths(paths)
|
||||
|
||||
def test_flake8_compliance(self):
|
||||
"""generated project should pass flake8"""
|
||||
self.generate_project()
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user