Skip to content

Commit

Permalink
excluded untestable funtions from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianneubauer committed Jan 7, 2018
1 parent d0959e6 commit 2470ea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions postgraas_server/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_default_config_filename():
return config_filename


def _load_secrets(filename='/secrets'):
def _load_secrets(filename='/secrets'): # pragma: no cover
try:
with open(filename, 'r') as secrets_file:
secrets = json.load(secrets_file)
Expand All @@ -31,7 +31,7 @@ def get_config(config_filename=get_default_config_filename(), secrets_file='/sec
with open(config_filename, 'r') as cfg:
config = json.load(cfg)
secrets = _load_secrets(filename=secrets_file)
if secrets:
if secrets: # pragma: no cover
try:
import secure_config.secrets as sec
config = sec.load_secret_dict(password=secrets['encryption_key'], config_dict=config)
Expand Down
2 changes: 1 addition & 1 deletion postgraas_server/management_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
logger = logging.getLogger(__name__)


def is_sane_database(Base, session):
def is_sane_database(Base, session): # pragma: no cover
"""
from: http://stackoverflow.com/questions/30428639/check-database-schema-matches-sqlalchemy-models-on-application-startup
Check whether the current database matches the models declared in model base.
Expand Down

0 comments on commit 2470ea9

Please sign in to comment.