Coverage for pyodmongo/version.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-16 15:08 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-16 15:08 +0000
1import pydantic
2import platform
3import sys
4import pymongo
5import motor
8VERSION = "__VERSION__"
10info = {
11 "PyODMongo version": VERSION,
12 "Pydantic version": pydantic.version.VERSION,
13 "Pymongo version": pymongo.__version__,
14 "Motor version": motor._version.version,
15 "Python version": sys.version,
16 "Platform": platform.platform(),
17}
18response = "\n".join([f"{key}: {value}" for key, value in info.items()])
19print(response)