Skip to content

Failed

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

Failing for the past 4 builds (Since #64 )
Took 3 sec.

Error Message

AssertionError: assert [{'archived':...': 4578, ...}] == [{'id': 7347,...grp isOwned'}]
  
  At index 0 diff: {'id': 7347, 'archived': None, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7347, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7347,
            'name': 'aluminium',
            'ownerId': 4578,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7346,
            'name': 'Zinc',
            'ownerId': 4578,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f2242395c40>
userA = (<omero.clients.BaseClient object at 0x7f22bc6997c0>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
groupB = object #0 (::omero::model::ExperimenterGroup)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 3477
    }
 ... {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
    _description = <nil>
}
images_userA_groupB = [object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7347
    }
    _details...   {
    }
    _name = object #55 (::omero::RString)
    {
        _val = Zinc
    }
    _description = <object #14>
}]

    def test_marshal_images_another_group(self, userA, groupB,
                                          images_userA_groupB):
        """
        Test marshalling user's own orphaned images in another group
        """
        conn = get_connection(userA)
        expected = expected_images(userA, images_userA_groupB)
        marshaled = marshal_images(conn=conn,
                                   experimenter_id=userA[1].id.val,
                                   group_id=groupB.id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4578, ...}] == [{'id': 7347,...grp isOwned'}]
E         
E         At index 0 diff: {'id': 7347, 'archived': None, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7347, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7347,
E                   'name': 'aluminium',
E                   'ownerId': 4578,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7346,
E                   'name': 'Zinc',
E                   'ownerId': 4578,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E           ]

test/integration/test_tree.py:1773: AssertionError