Skip to content

Commit

Permalink
test(improve-coverage): coverage ignores DB setup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Aug 14, 2019
1 parent 0a873bc commit 6278c2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indexd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def hint_match(record, hints):
from sqlalchemy.engine.reflection import Inspector


def try_drop_test_data(user, database, root_user="postgres", host=""):
def try_drop_test_data(user, database, root_user="postgres", host=""): # pragma: no cover

engine = create_engine(
"postgres://{user}@{host}/postgres".format(user=root_user, host=host)
Expand All @@ -39,7 +39,7 @@ def setup_database(
host="",
no_drop=False,
no_user=False,
):
): # pragma: no cover
"""
setup the user and database
"""
Expand Down Expand Up @@ -77,7 +77,7 @@ def setup_database(
conn.close()


def create_tables(host, user, password, database):
def create_tables(host, user, password, database): # pragma: no cover
"""
create tables
"""
Expand Down

0 comments on commit 6278c2e

Please sign in to comment.