Let's see whether you can answer the following questions correctly:
- Pytest makes it easy to declare a test fixture function by marking a function with which of the following decorators?:
@pytest.fixture_function
@pytest.test_fixture
@pytest.fixture
- By default, pytest discovers and executes functions as text functions when they start with which of the following prefixes?:
test
test_
test-
- Which of the following commands displays the line numbers of the missing statements in the
Missing
column for a coverage report?:coverage report -m
coverage report missing
coverage -missing
- Pytest is a very popular Python:
- Unit test framework that makes testing easy and reduces boilerplate code
- WSGI server that we can use to run Flask applications in production
- Load balancing solution that is suitable for Flask applications
- The
coverage
tool:- Load balances requests to a Flask-RESTful API built with Flask-RESTful
- Measures code coverage of Python programs
- Replaces the Flask development...