Skip to content

Commit

Permalink
Configure coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Oct 11, 2015
1 parent 9deb91e commit 09556d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions djangocms_installer/config/__init__.py
Expand Up @@ -274,7 +274,7 @@ def parse(args):
else:
requirements.extend(data.REQUIREMENTS['plugins-common-master'])
requirements.extend(data.REQUIREMENTS['plugins-basic-master'])
if args.aldryn:
if args.aldryn: # pragma: no cover
requirements.extend(data.REQUIREMENTS['aldryn'])

# Django version check
Expand Down Expand Up @@ -311,7 +311,7 @@ def parse(args):
requirements.extend(data.REQUIREMENTS['default'])

setattr(args, 'requirements', '\n'.join(requirements).strip())
if cms_version < 3 and args.aldryn:
if cms_version < 3 and args.aldryn: # pragma: no cover
sys.stderr.write('Aldryn Boilerplate is not compatible with django CMS versions < 3\n')
sys.exit(5)

Expand Down
8 changes: 4 additions & 4 deletions djangocms_installer/django/__init__.py
Expand Up @@ -59,7 +59,7 @@ def _detect_migration_layout(vars, apps):
return DJANGO_MODULES, SOUTH_MODULES


def _install_aldryn(config_data):
def _install_aldryn(config_data): # pragma: no cover
import requests
media_project = os.path.join(config_data.project_directory, 'dist', 'media')
static_main = False
Expand Down Expand Up @@ -147,7 +147,7 @@ def patch_settings(config_data):

original = original.replace('# -*- coding: utf-8 -*-\n', '')

if config_data.aldryn:
if config_data.aldryn: # pragma: no cover
DATA_DIR = (
'DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), \'dist\')\n'
)
Expand Down Expand Up @@ -256,7 +256,7 @@ def _build_settings(config_data):
text.append('TEMPLATE_CONTEXT_PROCESSORS = (\n%s%s\n)' % (
spacer, (',\n' + spacer).join(['\'%s\'' % var for var in processors])))

if config_data.aldryn:
if config_data.aldryn: # pragma: no cover
text.append('TEMPLATE_DIRS = (\n%s%s\n)' % (
spacer, 'os.path.join(BASE_DIR, \'templates\'),'))
else:
Expand Down Expand Up @@ -300,7 +300,7 @@ def _build_settings(config_data):
if config_data.django_version <= 1.6:
apps.extend(vars.SOUTH_APPLICATIONS)

if config_data.aldryn:
if config_data.aldryn: # pragma: no cover
apps.extend(vars.ALDRYN_APPLICATIONS)
if config_data.reversion:
apps.extend(vars.REVERSION_APPLICATIONS)
Expand Down

0 comments on commit 09556d9

Please sign in to comment.