Skip to content

Failed

OmeroWeb.test.integration.test_tree.TestTree.test_marshal_images_user_pixels (from pytest)

Failing for the past 5 builds (Since #64 )
Took 3.1 sec.

Error Message

AssertionError: assert [{'archived':...': 4573, ...}] == [{'id': 7341,...sOwned', ...}]
  
  At index 0 diff: {'id': 7341, 'archived': None, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1} != {'id': 7341, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7341,
            'name': 'testImage',
            'ownerId': 4573,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            'sizeT': 1,
            'sizeX': 50,
            'sizeY': 50,
            'sizeZ': 5,
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f9f2bb8c250>
userA = (<omero.clients.BaseClient object at 0x7f9f7b67c940>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
image_pixels_userA = object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7341
    }
    _details ...       _val = testImage
    }
    _description = object #66 (::omero::RString)
    {
        _val = description
    }
}

    def test_marshal_images_user_pixels(self, userA, image_pixels_userA):
        """
        Test marshalling image, loading pixels
        """
        conn = get_connection(userA)
        expected = expected_images(userA, [image_pixels_userA])
        expected[0]['sizeX'] = 50
        expected[0]['sizeY'] = 50
        expected[0]['sizeZ'] = 5
        expected[0]['sizeT'] = 1
        marshaled = marshal_images(conn=conn,
                                   load_pixels=True,
                                   experimenter_id=userA[1].id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4573, ...}] == [{'id': 7341,...sOwned', ...}]
E         
E         At index 0 diff: {'id': 7341, 'archived': None, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1} != {'id': 7341, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7341,
E                   'name': 'testImage',
E                   'ownerId': 4573,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   'sizeT': 1,
E                   'sizeX': 50,
E                   'sizeY': 50,
E                   'sizeZ': 5,
E               },
E           ]

test/integration/test_tree.py:1726: AssertionError