Skip to content

Failed

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

Failing for the past 2 builds (Since #64 )
Took 5.5 sec.

Error Message

AssertionError: assert [{'archived':...': 4577, ...}] == [{'id': 7345,...canAnnotate'}]
  
  At index 0 diff: {'id': 7345, 'archived': None, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'} != {'id': 7345, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7345,
            'name': 'nitrogen',
            'ownerId': 4577,
            'permsCss': 'canAnnotate',
        },
        {
  +         'archived': None,
            'id': 7344,
            'name': 'Oxygen',
            'ownerId': 4577,
            'permsCss': 'canAnnotate',
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f077b0a2880>
userA = (<omero.clients.BaseClient object at 0x7f07f5094400>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
userB = (<omero.clients.BaseClient object at 0x7f080476fc10>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
images_userB_groupA = [object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7345
    }
    _details... {
    }
    _name = object #55 (::omero::RString)
    {
        _val = Oxygen
    }
    _description = <object #14>
}]

    def test_marshal_images_another_user(self, userA, userB,
                                         images_userB_groupA):
        """
        Test marshalling another user's orphaned images in current group
        """
        conn = get_connection(userA)
        expected = expected_images(userA, images_userB_groupA)
        marshaled = marshal_images(conn=conn,
                                   experimenter_id=userB[1].id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4577, ...}] == [{'id': 7345,...canAnnotate'}]
E         
E         At index 0 diff: {'id': 7345, 'archived': None, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'} != {'id': 7345, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7345,
E                   'name': 'nitrogen',
E                   'ownerId': 4577,
E                   'permsCss': 'canAnnotate',
E               },
E               {
E         +         'archived': None,
E                   'id': 7344,
E                   'name': 'Oxygen',
E                   'ownerId': 4577,
E                   'permsCss': 'canAnnotate',
E               },
E           ]

test/integration/test_tree.py:1761: AssertionError