Pytest -m connection FAILS (<path_to_env>/lib/python3.7/site-packages/pymongo/uri_parser.py:301: ConfigurationError)

Please read the error trace at https://gist.github.com/AnubhavUjjawal/8541f348b0a4d2acb287b23328446e61 . It was exceeding the body limit in discourse editor so I put it in github. I think there it is some DNS lookup error which I can’t understand.


I am using virtualenv and have installed the requirements using pip install -r requirements.txt

Does anybody know a solution ??

UPDATE: The test worked when I used a VPN with my computer and ran pytest -m connection again. So it might be a network problem.

Does anybody knows more about it??