Skip to content

Regression

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

Failing for the past 1 build (Since #77 )
Took 2.9 sec.

Error Message

AssertionError: assert [{'id': 7341,...sOwned', ...}] == [{'archived':...': 4573, ...}]
  
  At index 0 diff: {'id': 7341, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1} != {'archived': False, 'id': 7341, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1}
  
  Full diff:
    [
        {
  -         'archived': False,
            '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 0x7f5a9d1509d0>
userA = (<omero.clients.BaseClient object at 0x7f5b178bb8e0>, 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 [{'id': 7341,...sOwned', ...}] == [{'archived':...': 4573, ...}]
E         
E         At index 0 diff: {'id': 7341, 'name': 'testImage', 'ownerId': 4573, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': 50, 'sizeY': 50, 'sizeZ': 5, 'sizeT': 1} != {'archived': False, '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': False,
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:1727: AssertionError