Pytestconfigwarning: unknown config option: asyncio_mode

Answer:

The “pytestconfigwarning” you mentioned, is a warning message indicating that an unknown configuration option “asyncio_mode” was provided in the pytest configuration.

When running pytest, you can define and customize various options in the pytest.ini file, setup.cfg file, or directly in the command line using command line options.

The warning message is displayed because “asyncio_mode” is not a recognized configuration option in pytest. It means that pytest did not recognize the option and won’t be using it during test execution.

To fix this warning, you need to remove the “asyncio_mode” option from your pytest configuration. Make sure you have provided the correct option name, or check if it is actually supported by pytest.

Here’s an example of a pytest.ini file without the “asyncio_mode” option:

            [pytest]
            addopts = --verbose
            testpaths = tests
        

Leave a comment