Skip to content

Commit

Permalink
fix placement of no cover directive
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartz committed Apr 29, 2024
1 parent e6c40de commit 0fb6a9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions repo_policy_compliance/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ class OneTimeToken(Base):

db_connect_str = os.getenv("POSTGRESQL_DB_CONNECT_STRING")
engine: sa.Engine
if db_connect_str:
# this line is only covered by charm integration test which is not part of the coverage report
# pragma: no cover
# postgresql is only covered by charm integration test, which is not part of the coverage report
if db_connect_str: # pragma: no cover
engine = create_engine(db_connect_str)
else:
# Using sqlite means that this app can only be used with a single worker.
Expand Down

0 comments on commit 0fb6a9c

Please sign in to comment.