This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Why is it useful to use plain assert statements with Pytest tests?
assert
It makes tests perform faster.
It allows you to use Python operators for any comparison.
It allows tests to be executed in parallel.
What is one reason to group tests in a test class?
So that tests can benefit from a common setup or cleanup.
So that tests can take advantage of using plain assert statements.
So that tests can get randomized for better coverage.
Can Pytest be used as a Python library for testing?
No, Pytest doesn't have other modules and helpers to be used as a library.
No, Pytest only allows extensibility through plugins.
Yes, Pytest has modules and helpers that you can import in your tests.
You must answer all questions before checking your work.
Was this page helpful?