81412d355a9ad9b5a96aa691c8784f2d2223dd79,tests/preprocessing/test_csv_generator.py,,test_read_annotations_wrong_format,#,115

Before Change


    classes = {"a": 1, "b": 2, "c": 4, "d": 10}
    with pytest.raises(ValueError):
        try:
            annotations = csv_generator._read_annotations(csv_str("a.png,1,2,3,a"), classes)
        except ValueError as e:
            assert str(e).startswith("line 1: format should be")
            raise

After Change


    classes = {"a": 1, "b": 2, "c": 4, "d": 10}
    with pytest.raises(ValueError):
        try:
            csv_generator._read_annotations(csv_str("a.png,1,2,3,a"), classes)
        except ValueError as e:
            assert str(e).startswith("line 1: format should be")
            raise
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_format


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_invalid_bb_x


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_x1


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_class


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_y1


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_invalid_bb_y


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_x2


Project Name: fizyr/keras-retinanet
Commit Name: 81412d355a9ad9b5a96aa691c8784f2d2223dd79
Time: 2018-05-30
Author: cclauss@bluewin.ch
File Name: tests/preprocessing/test_csv_generator.py
Class Name:
Method Name: test_read_annotations_wrong_y2