(options)
| 41 | |
| 42 | |
| 43 | def _connect(options): |
| 44 | assert CA_FILE is not None |
| 45 | uri = f"mongodb://localhost:27017/?serverSelectionTimeoutMS=10000&tlsCAFile={Path(CA_FILE).as_posix()}&{options}" |
| 46 | print(uri) |
| 47 | try: |
| 48 | client = pymongo.MongoClient(uri) |
| 49 | client.admin.command("ping") |
| 50 | finally: |
| 51 | client.close() |
| 52 | |
| 53 | |
| 54 | class TestOCSP(unittest.TestCase): |
no test coverage detected