Skip to content
Snippets Groups Projects
Commit be9e216f authored by Max Lou's avatar Max Lou
Browse files

Tweaking mongoclient for testing

parent 837b1aa6
No related branches found
No related tags found
No related merge requests found
from django.conf import settings from django.conf import settings
from pymongo import MongoClient from pymongo import MongoClient
if settings.TESTING == "False": if settings.TESTING == "True":
lrs_db = None
else:
lrs_db_client = MongoClient(settings.LRS_CONNECTION_STRING) lrs_db_client = MongoClient(settings.LRS_CONNECTION_STRING)
lrs_db = lrs_db_client[settings.LRS_MONGO_DB_NAME] lrs_db = lrs_db_client[settings.LRS_MONGO_DB_NAME]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment