Skip to content

Commit

Permalink
mixin.py: Add pragma no cover for default branch
Browse files Browse the repository at this point in the history
A default branch is needed to ensure branch coverage.
'pragma: no cover' is used as a temporary workaround.

Related to coala#611
Related to coala#609
  • Loading branch information
jayvdb committed Aug 9, 2018
1 parent d1b62c8 commit 415894f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def get_configuration_template(self):
return default_config
elif self.CONFIG_TEMPLATE:
return self.CONFIG_TEMPLATE
else: # pragma: no cover
return

def configure(self, configuration):
default_config = self._default_config
Expand Down

0 comments on commit 415894f

Please sign in to comment.