This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What is one useful feature of adding fixtures to the conftest.py file?
That it allows importing those fixtures in a test suite.
That is allows sharing the fixtures without importing them in a test suite.
Because it allows fixtures to require Pytest fixtures.
What makes a test be a good candidate for parametrize()?
parametrize()
When a test needs to loop over inputs for the same assertion
When a test needs to catch multiple exceptions.
When a test needs to run in parallel
Why multiple arguments with parametrize might not be a good idea?
Because Pytest doesn't allow it. An exception gets raised instead.
Because test functions don't allow multiple arguments.
Because it can make tests harder to read.
You must answer all questions before checking your work.
Continue
Was this page helpful?