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

Please read the error trace at . 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??