Skip to content

Commit

Permalink
Merge pull request #3142 from camptocamp/coverage
Browse files Browse the repository at this point in the history
Coverage, see commits
  • Loading branch information
sbrunner committed Oct 4, 2017
2 parents 4946c1c + a126709 commit 8735661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions c2cgeoportal/pyramid_.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,6 @@ def init_dbsessions(settings, config=None, health_check=None):
for name, session in models.DBSessions.items():
if name == "dbsession":
health_check.add_db_session_check(session, at_least_one_model=models.Theme)
else:
health_check.add_db_session_check(session,
query_cb=lambda session: session.execute("SELECT 1"))
else: # pragma: no cover
health_check.add_db_session_check(
session, query_cb=lambda session: session.execute("SELECT 1"))
3 changes: 0 additions & 3 deletions docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def main():

for env in [
"HOME",
"TRAVIS",
"TRAVIS_BRANCH",
"TRAVIS_JOB_ID",
"SRID",
"EXTENT",
"APACHE_VHOST",
Expand Down

0 comments on commit 8735661

Please sign in to comment.