Skip to content

Regression

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

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

Error Message

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

Stacktrace

self = <test_tree.TestTree object at 0x7f5a9d85da30>
userC = (<omero.clients.BaseClient object at 0x7f5b25e90ac0>, 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 [{'id': 7374,...grp isOwned'}] == [{'archived':...': 4587, ...}]
E         
E         At index 0 diff: {'id': 7374, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'} != {'archived': False, 'id': 7374, 'name': 'ImageA', 'ownerId': 4587, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}
E         
E         Full diff:
E           [
E               {
E         -         'archived': False,
E                   'id': 7374,
E                   'name': 'ImageA',
E                   'ownerId': 4587,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E               },
E           ]

test/integration/test_tree.py:1882: AssertionError