In pytest, the ____ fixture is used to pass command-line options to test functions.

  • @pytest.cmdline
  • @pytest.config
  • @pytest.fixture(params)
  • @pytest.options
In pytest, the @pytest.config fixture is used to pass command-line options and configuration values to test functions. This allows you to customize the behavior of your tests based on configuration settings.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *