1 | initial version |
Yes, if you use the '-c path/pytest.ini' option in pytest.main(), it will apply the function pattern for only the file specified in the 'path' argument. The pytest.ini file provides configuration options for pytest, including specifying certain markers or patterns to be used for selecting specific tests. By specifying the '-c path/pytest.ini' option, pytest will look for the configuration file at the specified path and apply any settings or options specified in it. This can include specifying which functions to include or exclude from testing using the 'python_functions' setting.