Skip to content

Commit

Permalink
TestWorkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-dhage committed Oct 31, 2024
1 parent 6797369 commit 36dff2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import os
import sys
from pymongo import MongoClient
import ssl


def get_DB(isTest=False):
with open(os.path.join(sys.path[0], "config.ini"), "r") as f:
content = f.readlines()
client = MongoClient("mongodb+srv://anishd1910:" +
content[0]+"@cluster0.oagwk.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0",
tls=True, # Enable TLS (SSL)
tlsAllowInvalidCertificates=True)
content[0]+"@cluster0.oagwk.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")

if (isTest):
return client.SETestProj
Expand Down

0 comments on commit 36dff2b

Please sign in to comment.