Your question is Validate API Test Coverage. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a list of expected API test cases and a list of executed test results, write a function that returns True if the automated test run is reliable and False otherwise. A run is reliable only if every expected endpoint appears at least once, every required status code for that endpoint is covered, and no executed test for those required checks has passed = False.
def is_reliable_test_run(expected, results):