Skip to content

Failed

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

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

Error Message

AssertionError: assert [{'archived':...': 4587, ...}] == [{'id': 7374,...grp isOwned'}]
  
  At index 0 diff: {'id': 7374, 'archived': None, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7374, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
  
  Full diff:
    [
        {
  +         'archived': None,
            'id': 7374,
            'name': 'ImageA',
            'ownerId': 4587,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7fbf83b58520>
userC = (<omero.clients.BaseClient object at 0x7fc00059b790>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
project_hierarchy_crosslink = [object #0 (::omero::model::Project)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 1069
    }
    _detai...{
    }
    _name = object #114 (::omero::RString)
    {
        _val = ImageA
    }
    _description = <object #14>
}]

    def test_marshal_images_dataset_crosslink(self, userC,
                                              project_hierarchy_crosslink):
        """
        Test marshalling crosslinked images
        """
        conn = get_connection(userC)
        dataset = project_hierarchy_crosslink[1]
        image = project_hierarchy_crosslink[2]
        expected = expected_images(userC, [image])
        marshaled = marshal_images(conn=conn,
                                   dataset_id=dataset.id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'archived':...': 4587, ...}] == [{'id': 7374,...grp isOwned'}]
E         
E         At index 0 diff: {'id': 7374, 'archived': None, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'id': 7374, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         +         'archived': None,
E                   'id': 7374,
E                   'name': 'ImageA',
E                   'ownerId': 4587,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E           ]

test/integration/test_tree.py:1881: AssertionError