Hi,
I’m currently facing the same issue as ERROR at setup of test_atlas_setup. I am working off my local MongoDB.
-
M220P website runs.
-
pytest.exe -m connection fails with same errors in original post.
I tried:
-
updated dnspython to 1.16.0
-
In tests/pycache: removed everything.
-
Ran pytest tests/test_db_connection.py --fixtures
Please see output:
============================= test session starts =============================
platform win32 -- Python 3.10.1, pytest-7.0.1, pluggy-1.0.0
rootdir: F:\Codes\Python\virtual\mflix, configfile: pytest.ini
collected 4 items
cache -- ...\_pytest\cacheprovider.py:510
Return a cache object that can persist state between testing sessions.
capsys -- ...\_pytest\capture.py:878
Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.
capsysbinary -- ...\_pytest\capture.py:895
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.
capfd -- ...\_pytest\capture.py:912
Enable text capturing of writes to file descriptors ``1`` and ``2``.
capfdbinary -- ...\_pytest\capture.py:929
Enable bytes capturing of writes to file descriptors ``1`` and ``2``.
doctest_namespace [session scope] -- ...\_pytest\doctest.py:731
Fixture that returns a :py:class:`dict` that will be injected into the
namespace of doctests.
pytestconfig [session scope] -- ...\_pytest\fixtures.py:1365
Session-scoped fixture that returns the session's :class:`pytest.Config`
object.
record_property -- ...\_pytest\junitxml.py:282
Add extra properties to the calling test.
record_xml_attribute -- ...\_pytest\junitxml.py:305
Add extra xml attributes to the tag for the calling test.
record_testsuite_property [session scope] -- ...\_pytest\junitxml.py:343
Record a new ``<property>`` tag as child of the root ``<testsuite>``.
tmpdir_factory [session scope] -- ...\_pytest\legacypath.py:295
Return a :class:`pytest.TempdirFactory` instance for the test session.
tmpdir -- ...\_pytest\legacypath.py:302
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory.
caplog -- ...\_pytest\logging.py:483
Access and control log capturing.
monkeypatch -- ...\_pytest\monkeypatch.py:29
A convenient fixture for monkey-patching.
recwarn -- ...\_pytest\recwarn.py:29
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
tmp_path_factory [session scope] -- ...\_pytest\tmpdir.py:183
Return a :class:`pytest.TempPathFactory` instance for the test session.
tmp_path -- ...\_pytest\tmpdir.py:198
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory.
-------------------- fixtures defined from tests.conftest ---------------------
app -- tests\conftest.py:12
no docstring available
============================ no tests ran in 0.01s ============================
Thank you and best regards,
Be Hai Nguyen.