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.
Loading...
Related Quiz
- Which method is used to insert an item at a specified index in a list?
- In which data structure are elements connected using pointers to form a sequence?
- In Django, what is the name of the file used to define the URL patterns of an app?
- A ____ in Python is a collection of key-value pairs, where the keys must be immutable.
- How can you profile a Python script to analyze the time spent in each function call?