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