Complete the code to specify the minimum pytest version in pytest.ini.
[pytest]
minversion = [1]The minversion option sets the minimum pytest version required. Here, 5.0 is a common minimum version.
Complete the code to add markers section in pytest.ini.
[pytest]
markers =
slow: marks tests as slow to run [1]The markers section documents custom markers. The comment # mark slow tests explains the purpose.
Fix the error in pytest.ini to correctly add testpaths.
[pytest]
testpaths = [1]The testpaths option lists directories without brackets or quotes. Just tests is correct.
Fill both blanks to configure pytest to add options for verbose output and disable warnings.
[pytest] addopts = [1] [2]
-q instead of verbose -v.--maxfail=1 with disabling warnings.The addopts option adds command line options. -v enables verbose output, and --disable-warnings disables warning messages.
Fill all three blanks to create a pytest.ini that sets minversion, adds a marker, and sets testpaths.
[pytest] minversion = [1] markers = integration: [2] testpaths = [3]
This pytest.ini sets minversion to 5.4, documents the integration marker, and sets testpaths to integration_tests folder.