c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3,app/tests/cases_tests/test_fallback.py,,test_image_builder_fallback_corrupt_file,#Any#,38

Before Change


    dest = Path(tmpdir) / src.name
    shutil.copy(str(src), str(dest))

    files = [Path(d[0]).joinpath(f) for d in os.walk(tmpdir) for f in d[2]]
    result = image_builder_fallback(files)
    assert result.file_errors_map == {
        dest: format_error("Not a valid image file"),
    }

After Change


    dest = Path(tmpdir) / src.name
    shutil.copy(str(src), str(dest))

    files = {Path(d[0]).joinpath(f) for d in os.walk(tmpdir) for f in d[2]}
    result = image_builder_fallback(files=files)
    assert result.file_errors == {
        dest: format_error("Not a valid image file"),
    }
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/tests/cases_tests/test_fallback.py
Class Name:
Method Name: test_image_builder_fallback_corrupt_file


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/tests/cases_tests/test_fallback.py
Class Name:
Method Name: test_image_builder_fallback


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/tests/cases_tests/test_tiff.py
Class Name:
Method Name: test_error_handling