Skip to content

Regression

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

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

Error Message

AssertionError: assert {'acquisition...9, ...}], ...} == {'acquisition...9, ...}], ...}
  
  Omitting 6 identical items, use -vv to show
  Differing items:
  {'images': [{'id': 7405, 'name': 'ImageA', 'ownerId': 4639, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}]} != {'images': [{'archived': False, 'id': 7405, 'name': 'ImageA', 'ownerId': 4639, ...}]}
  
  Full diff:
    {
        'acquisitions': [
            {
                'id': 247,
                'name': 'Run 247',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
            },
        ],
        'datasets': [
            {
                'childCount': 2,
                'id': 1349,
                'name': 'DatasetA',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            },
        ],
        'images': [
            {
  -             'archived': False,
                'id': 7405,
                'name': 'ImageA',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            },
        ],
        'plates': [
            {
                'childCount': 3,
                'id': 429,
                'name': 'PlateA',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            },
        ],
        'projects': [
            {
                'childCount': 2,
                'id': 1082,
                'name': 'ProjectA',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            },
        ],
        'screens': [
            {
                'childCount': 1,
                'id': 235,
                'name': 'ScreenA',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            },
        ],
        'wells': [
            {
                'id': 676,
                'name': 'PlateA - A1',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
                'plateId': 429,
            },
            {
                'id': 677,
                'name': 'PlateA - A2',
                'ownerId': 4639,
                'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
                'plateId': 429,
            },
        ],
    }

Stacktrace

self = <test_tree.TestTree object at 0x7f5a9d166e50>
userA = (<omero.clients.BaseClient object at 0x7f5b216cedf0>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
tagset_hierarchy_userA_groupA = [object #0 (::omero::model::TagAnnotation)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 38027
    }
   ... {
    }
    _name = object #114 (::omero::RString)
    {
        _val = ScreenA
    }
    _description = <nil>
}, ...]

    def test_marshal_tagged_user(self, userA, tagset_hierarchy_userA_groupA):
        """
        Test marshalling tagged data for userA in groupA in tagsetA
        """
        conn = get_connection(userA)
        tag = tagset_hierarchy_userA_groupA[1]
        projects = [tagset_hierarchy_userA_groupA[2]]
        datasets = [tagset_hierarchy_userA_groupA[3]]
        images = [tagset_hierarchy_userA_groupA[4]]
        screens = [tagset_hierarchy_userA_groupA[5]]
        plates = [tagset_hierarchy_userA_groupA[6]]
        acqs = [tagset_hierarchy_userA_groupA[7]]
        wells = tagset_hierarchy_userA_groupA[8:10]
        expected = expected_tagged(userA, projects, datasets, images,
                                   screens, plates, acqs, wells)
        marshaled = marshal_tagged(conn=conn,
                                   experimenter_id=userA[1].id.val,
                                   tag_id=tag.id.val)
>       assert marshaled == expected
E       AssertionError: assert {'acquisition...9, ...}], ...} == {'acquisition...9, ...}], ...}
E         
E         Omitting 6 identical items, use -vv to show
E         Differing items:
E         {'images': [{'id': 7405, 'name': 'ImageA', 'ownerId': 4639, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned'}]} != {'images': [{'archived': False, 'id': 7405, 'name': 'ImageA', 'ownerId': 4639, ...}]}
E         
E         Full diff:
E           {
E               'acquisitions': [
E                   {
E                       'id': 247,
E                       'name': 'Run 247',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
E                   },
E               ],
E               'datasets': [
E                   {
E                       'childCount': 2,
E                       'id': 1349,
E                       'name': 'DatasetA',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   },
E               ],
E               'images': [
E                   {
E         -             'archived': False,
E                       'id': 7405,
E                       'name': 'ImageA',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   },
E               ],
E               'plates': [
E                   {
E                       'childCount': 3,
E                       'id': 429,
E                       'name': 'PlateA',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   },
E               ],
E               'projects': [
E                   {
E                       'childCount': 2,
E                       'id': 1082,
E                       'name': 'ProjectA',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   },
E               ],
E               'screens': [
E                   {
E                       'childCount': 1,
E                       'id': 235,
E                       'name': 'ScreenA',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   },
E               ],
E               'wells': [
E                   {
E                       'id': 676,
E                       'name': 'PlateA - A1',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
E                       'plateId': 429,
E                   },
E                   {
E                       'id': 677,
E                       'name': 'PlateA - A2',
E                       'ownerId': 4639,
E                       'permsCss': 'canEdit canAnnotate canLink canDelete isOwned',
E                       'plateId': 429,
E                   },
E               ],
E           }

test/integration/test_tree.py:2296: AssertionError