Complete the code to specify the test directory in pyproject.toml.
[tool.pytest.ini_options] testpaths = ["[1]"]
The testpaths option tells pytest where to find test files. Usually, tests are placed in a tests folder.
Complete the code to add markers configuration in pyproject.toml.
[tool.pytest.ini_options] markers = ["[1]"]
The markers option defines custom markers for tests. Here, slow is a common marker to identify slow tests.
Fix the error in the pyproject.toml snippet to correctly set the minimum pytest version.
[tool.pytest.ini_options] minversion = "[1]"
The minversion option requires a string with the minimum pytest version. Version 6.2 is a common stable minimum.
Fill both blanks to configure pytest to add options for test verbosity and disable warnings.
[tool.pytest.ini_options] addopts = "[1] [2]"
-q instead of verbose.--maxfail=1.The addopts option adds command line options. -v increases verbosity, and -p no:warnings disables warnings.
Fill all three blanks to create a pytest configuration that sets test paths, markers, and disables warnings.
[tool.pytest.ini_options] testpaths = ["[1]"] markers = ["[2]"] addopts = "[3]"
This configuration sets tests as the test folder, defines a slow marker, and disables warnings with -p no:warnings.