Skip to content

Failed

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

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

Error Message

AssertionError: assert [{'archived':...': 4579, ...}] == [{'id': 7353,...grp isOwned'}]
  
  At index 0 diff: {'id': 7353, 'archived': None, 'name': 'aluminium', 'ownerId': 4579, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7353, 'name': 'aluminium', 'ownerId': 4579, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7353,
            'name': 'aluminium',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7351,
            'name': 'boron',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7350,
            'name': 'Helium',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7349,
            'name': 'hydrogen',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7348,
            'name': 'Neon',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7352,
            'name': 'Zinc',
            'ownerId': 4579,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f22423950a0>
userA = (<omero.clients.BaseClient object at 0x7f22c8f64f40>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
images_userA = [object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7353
    }
    _details...   {
    }
    _name = object #55 (::omero::RString)
    {
        _val = Zinc
    }
    _description = <object #14>
}]

    def test_marshal_images_all_groups(self, userA, images_userA):
        """
        Test marshalling all orphaned images for a user regardless of group
        """
        conn = get_connection(userA)
        expected = expected_images(userA, images_userA)
        marshaled = marshal_images(conn=conn,
                                   experimenter_id=userA[1].id.val,
                                   group_id=-1)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4579, ...}] == [{'id': 7353,...grp isOwned'}]
E         
E         At index 0 diff: {'id': 7353, 'archived': None, 'name': 'aluminium', 'ownerId': 4579, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7353, 'name': 'aluminium', 'ownerId': 4579, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7353,
E                   'name': 'aluminium',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7351,
E                   'name': 'boron',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7350,
E                   'name': 'Helium',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7349,
E                   'name': 'hydrogen',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7348,
E                   'name': 'Neon',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7352,
E                   'name': 'Zinc',
E                   'ownerId': 4579,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E           ]

test/integration/test_tree.py:1784: AssertionError