c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3,app/tests/cases_tests/test_fallback.py,,test_image_builder_fallback,#Any#Any#Any#,25

Before Change


def test_image_builder_fallback(tmpdir, src, colorspace):
    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.consumed_files == [dest]
    image = result.new_images[0]
    assert image.color_space == colorspace

After Change


def test_image_builder_fallback(tmpdir, src, colorspace):
    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.consumed_files == {dest}
    assert len(result.new_images) == 1
    image = result.new_images.pop()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

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


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_tiff.py
Class Name:
Method Name: test_error_handling