Skip to content

Commit

Permalink
Fixing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
slimovich committed Jul 2, 2020
1 parent c53c472 commit 19dd500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 94 deletions.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ exclude_lines =
[coverage:run]
branch = true
omit =
src/api/utils.py
src/infrastructure/databse/migrations/*
src/core/databse/server.py
src/core/databse/manage.py
src/utils/*

[isort]
multi_line_output = 3
Expand Down
9 changes: 3 additions & 6 deletions src/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
LOGGER = logging.getLogger(__name__)


try:
# create Gino engine
LOGGER.info(f"Initialise Gino engine and connecting to {DATABASE_URI}")
db = Gino(dsn=DATABASE_URI)
except Exception as e:
LOGGER.error(f"Error in Gino engine initialisation => {e}")
# create Gino engine
LOGGER.info(f"Initialise Gino engine and connecting to {DATABASE_URI}")
db = Gino(dsn=DATABASE_URI)
88 changes: 0 additions & 88 deletions src/core/router_class.py

This file was deleted.

0 comments on commit 19dd500

Please sign in to comment.