....................FFFFFFFFF........................................... [ 31%]
........................................................................ [ 63%]
....................................................................F... [ 95%]
..........                                                               [100%]
=================================== FAILURES ===================================
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'aspect_ratio', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6765e9f0>()
E            +      where <built-in method splitlines of str object at 0x55fa6765e9f0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67618bc0>()
E            +          where <built-in method decode of bytes object at 0x55fa67618bc0> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_width', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
E            +      where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674efa10>()
E            +          where <built-in method decode of bytes object at 0x55fa674efa10> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_height', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67423900>()
E            +      where <built-in method splitlines of str object at 0x55fa67423900> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
E            +          where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
___ test_position_type_scope_citations_and_no_fabricated_named_values[7.fit] ___

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'fit', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa676f5570>()
E            +      where <built-in method splitlines of str object at 0x55fa676f5570> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67862110>()
E            +          where <built-in method decode of bytes object at 0x55fa67862110> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.method] __

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'method', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
E            +      where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67864360>()
E            +          where <built-in method decode of bytes object at 0x55fa67864360> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'round_to_multiple', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67423900>()
E            +      where <built-in method splitlines of str object at 0x55fa67423900> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674efa10>()
E            +          where <built-in method decode of bytes object at 0x55fa674efa10> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_side', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
E            +      where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
E            +          where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_length', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67748700>()
E            +      where <built-in method splitlines of str object at 0x55fa67748700> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67613a00>()
E            +          where <built-in method decode of bytes object at 0x55fa67613a00> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color] _

f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'background_color', ...}

    @pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
    def test_position_type_scope_citations_and_no_fabricated_named_values(f):
        assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
        assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
        assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
        for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
        for i in f['evidence']:
            e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
            assert hashlib.sha256(raw).hexdigest()==e['sha256']
>           assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
E           assert 195 <= 186
E            +  where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
E            +    where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67750f70>()
E            +      where <built-in method splitlines of str object at 0x55fa67750f70> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
E            +        where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
E            +          where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n    "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode

calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
_______________ test_old_33_blocks_and_all_other_reviews_frozen ________________

    def test_old_33_blocks_and_all_other_reviews_frozen():
        p='calliope-backend/src/calliope/comfyui/source_reviews.json'
        old=json.loads(subprocess.check_output(['git','show','ce9502a:'+p],cwd=REPO))
        now=json.loads((REPO/p).read_bytes());now[PATH].pop('fixed_version_document')
        assert now==old and len(DEFINITIONS)==34
        blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
>       assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25
                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

calliope-backend/tests/test_resize_compare_fixed_document.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <list_iterator object at 0x7f44962dc9a0>

>   assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25
                                                                                       ^^^^^^^^^^^^^
E   KeyError: 'comments'

calliope-backend/tests/test_resize_compare_fixed_document.py:144: KeyError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
  /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-ce46f2ab3728/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
    _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.fit]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.method]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color]
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_old_33_blocks_and_all_other_reviews_frozen
10 failed, 216 passed, 1 warning in 4.72s
