Don't count testing code as coverage

pull/124/head
stijndcl 2022-08-03 16:27:33 +02:00
parent b74f794639
commit 8dbf68cac0
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ DBSession = sessionmaker(
) )
# MongoDB client # MongoDB client
if not settings.TESTING: if not settings.TESTING: # pragma: no cover
encoded_mongo_username = quote_plus(settings.MONGO_USER) encoded_mongo_username = quote_plus(settings.MONGO_USER)
encoded_mongo_password = quote_plus(settings.MONGO_PASS) encoded_mongo_password = quote_plus(settings.MONGO_PASS)
mongo_url = ( mongo_url = (