Complete the code to call the integration test function.
def test_integration(): result = [1]() assert result == 'success'
The function integration_test() is the correct call for integration testing.
Complete the code to check if the integration test passed.
def check_result(output): if output [1] 'success': return True return False
We use == to check if the output equals 'success'.
Fix the error in the integration test assertion.
def test_integration(): output = integration_test() assert output [1] 'success'
The assertion requires the equality operator ==, not assignment =.
Fill both blanks to create a dictionary of test results where keys are test names and values are their statuses.
test_results = {"login": [1], "payment": [2]The login test passed, so its value is 'passed'. The payment test failed, so its value is 'failed'.
Fill both blanks to create a filtered dictionary of tests that passed.
passed_tests = {k: v for k, v in test_results.items() if v {BLANK_2}} {{BLANK_2}}The dictionary comprehension uses ':' to map keys to values, and filters where value equals 'passed'.
