Skip to content

Regression

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

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

Error Message

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

Stacktrace

self = <test_tree.TestTree object at 0x7f5a9d7a1490>
userA = (<omero.clients.BaseClient object at 0x7f5b178bb400>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
userB = (<omero.clients.BaseClient object at 0x7f5a9d2142b0>, 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 [{'id': 7345,...canAnnotate'}] == [{'archived':...': 4577, ...}]
E         
E         At index 0 diff: {'id': 7345, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'} != {'archived': False, 'id': 7345, 'name': 'nitrogen', 'ownerId': 4577, 'permsCss': 'canAnnotate'}
E         
E         Full diff:
E           [
E               {
E         -         'archived': False,
E                   'id': 7345,
E                   'name': 'nitrogen',
E                   'ownerId': 4577,
E                   'permsCss': 'canAnnotate',
E               },
E               {
E         -         'archived': False,
E                   'id': 7344,
E                   'name': 'Oxygen',
E                   'ownerId': 4577,
E                   'permsCss': 'canAnnotate',
E               },
E           ]

test/integration/test_tree.py:1762: AssertionError