Skip to content

Regression

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

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

Error Message

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

Stacktrace

self = <test_tree.TestTree object at 0x7f5a9d7a1b80>
userA = (<omero.clients.BaseClient object at 0x7f5a9d1ef190>, 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 [{'id': 7347,...grp isOwned'}] == [{'archived':...': 4578, ...}]
E         
E         At index 0 diff: {'id': 7347, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'archived': False, 'id': 7347, 'name': 'aluminium', 'ownerId': 4578, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         -         'archived': False,
E                   'id': 7347,
E                   'name': 'aluminium',
E                   'ownerId': 4578,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         -         'archived': False,
E                   'id': 7346,
E                   'name': 'Zinc',
E                   'ownerId': 4578,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E           ]

test/integration/test_tree.py:1774: AssertionError