In the pytest framework, how do you mark a test function so that it is not executed by the test runner?
- @pytest.disable()
- @pytest.exclude()
- @pytest.ignore()
- @pytest.skip("Test not ready yet")
In pytest, you can use the @pytest.skip("Reason") decorator to mark a test function so that it is not executed. You can provide a reason for skipping for documentation purposes.
Loading...
Related Quiz
- In Pandas, how do you access the first five rows of a DataFrame?
- You have developed a machine learning model for a recommendation system. What evaluation metric would you use to assess the quality of the recommended items?
- What considerations would you take into account when deploying a Scikit-learn model in a production environment?
- Which Python built-in function will you use to sort a list of numbers in ascending order?
- How would you handle missing data for a numerical feature in a dataset before training a machine learning model?