Skip to content

Failed

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

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

Error Message

AssertionError: assert [{'archived':...': 4581, ...}] == [{'id': 7357,...canAnnotate'}]
  
  At index 0 diff: {'id': 7357, 'archived': None, 'name': 'boron', 'ownerId': 4580, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7357, 'name': 'boron', 'ownerId': 4580, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7357,
            'name': 'boron',
            'ownerId': 4580,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7356,
            'name': 'Helium',
            'ownerId': 4580,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7355,
            'name': 'hydrogen',
            'ownerId': 4580,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7354,
            'name': 'Neon',
            'ownerId': 4580,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
        {
  +         'archived': None,
            'id': 7359,
            'name': 'nitrogen',
            'ownerId': 4581,
            'permsCss': 'canAnnotate',
        },
        {
  +         'archived': None,
            'id': 7358,
            'name': 'Oxygen',
            'ownerId': 4581,
            'permsCss': 'canAnnotate',
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f2242395430>
userA = (<omero.clients.BaseClient object at 0x7f22cb35d3a0>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
groupA = object #0 (::omero::model::ExperimenterGroup)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 3480
    }
 ... {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
    _description = <nil>
}
images_groupA = [object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7357
    }
    _details... {
    }
    _name = object #55 (::omero::RString)
    {
        _val = Oxygen
    }
    _description = <object #14>
}]

    def test_marshal_images_all_users(self, userA, groupA, images_groupA):
        """
        Test marshalling all orphaned images for a group regardless of user
        """
        conn = get_connection(userA)
        expected = expected_images(userA, images_groupA)
        marshaled = marshal_images(conn=conn,
                                   group_id=groupA.id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4581, ...}] == [{'id': 7357,...canAnnotate'}]
E         
E         At index 0 diff: {'id': 7357, 'archived': None, 'name': 'boron', 'ownerId': 4580, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7357, 'name': 'boron', 'ownerId': 4580, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7357,
E                   'name': 'boron',
E                   'ownerId': 4580,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7356,
E                   'name': 'Helium',
E                   'ownerId': 4580,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7355,
E                   'name': 'hydrogen',
E                   'ownerId': 4580,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7354,
E                   'name': 'Neon',
E                   'ownerId': 4580,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E               {
E         +         'archived': None,
E                   'id': 7359,
E                   'name': 'nitrogen',
E                   'ownerId': 4581,
E                   'permsCss': 'canAnnotate',
E               },
E               {
E         +         'archived': None,
E                   'id': 7358,
E                   'name': 'Oxygen',
E                   'ownerId': 4581,
E                   'permsCss': 'canAnnotate',
E               },
E           ]

test/integration/test_tree.py:1794: AssertionError