def test_get_coverage_nb(): assert get_coverage(extract_extrametadata(nbformat.read(COVERAGE_NB, 4))) == 25
def test_get_coverage(test_count, cell_count, expected): metadata = {'test_count': test_count, 'cell_count': cell_count} assert get_coverage(metadata) == expected
def test_get_coverage(test_count, cell_count, expected): metadata = {"test_count": test_count, "cell_count": cell_count} assert get_coverage(metadata) == expected