Skip to content

Regression

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

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

Error Message

AssertionError: assert [{'id': 7378,...sOwned', ...}] == [{'archived':...': 4589, ...}]
  
  At index 0 diff: {'id': 7378, 'name': 'boron', 'ownerId': 4589, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'shareId': 10064} != {'archived': False, 'id': 7378, 'name': 'boron', 'ownerId': 4589, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'shareId': 10064}
  
  Full diff:
    [
        {
  -         'archived': False,
            'id': 7378,
            'name': 'boron',
            'ownerId': 4589,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            'shareId': 10064,
        },
        {
  -         'archived': False,
            'id': 7377,
            'name': 'Helium',
            'ownerId': 4589,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            'shareId': 10064,
        },
        {
  -         'archived': False,
            'id': 7376,
            'name': 'hydrogen',
            'ownerId': 4589,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            'shareId': 10064,
        },
        {
  -         'archived': False,
            'id': 7375,
            'name': 'Neon',
            'ownerId': 4589,
            'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
            'shareId': 10064,
        },
    ]

Stacktrace

self = <test_tree.TestTree object at 0x7f5a9d85d850>
userA = (<omero.clients.BaseClient object at 0x7f5b26548100>, object #0 (::omero::model::Experimenter)
{
    _id = object #1 (...nnotationLinksSeq = 
    {
    }
    _annotationLinksLoaded = False
    _annotationLinksCountPerOwner = 
    {
    }
})
shares_userA_owned = [object #0 (::omero::model::Share)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 10064
    }
    _detail... 2
        [398] = 5
        [399] = 0
        [400] = 0
        [401] = 0
        [402] = 0
        [403] = 0
    }
}]
images_userA_groupA = [object #0 (::omero::model::Image)
{
    _id = object #1 (::omero::RLong)
    {
        _val = 7378
    }
    _details...   {
    }
    _name = object #55 (::omero::RString)
    {
        _val = Neon
    }
    _description = <object #14>
}]

    def test_marshal_images_share(self, userA, shares_userA_owned,
                                  images_userA_groupA):
        """
        Test marshalling images for shareA
        """
        conn = get_connection(userA)
        share = shares_userA_owned[0]
        images = images_userA_groupA
        expected = expected_images(userA, images,
                                   extraValues={'shareId': share.id.val})
        marshaled = marshal_images(conn=conn,
                                   share_id=share.id.val)
>       assert marshaled == expected
E       AssertionError: assert [{'id': 7378,...sOwned', ...}] == [{'archived':...': 4589, ...}]
E         
E         At index 0 diff: {'id': 7378, 'name': 'boron', 'ownerId': 4589, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'shareId': 10064} != {'archived': False, 'id': 7378, 'name': 'boron', 'ownerId': 4589, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'shareId': 10064}
E         
E         Full diff:
E           [
E               {
E         -         'archived': False,
E                   'id': 7378,
E                   'name': 'boron',
E                   'ownerId': 4589,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   'shareId': 10064,
E               },
E               {
E         -         'archived': False,
E                   'id': 7377,
E                   'name': 'Helium',
E                   'ownerId': 4589,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   'shareId': 10064,
E               },
E               {
E         -         'archived': False,
E                   'id': 7376,
E                   'name': 'hydrogen',
E                   'ownerId': 4589,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   'shareId': 10064,
E               },
E               {
E         -         'archived': False,
E                   'id': 7375,
E                   'name': 'Neon',
E                   'ownerId': 4589,
E                   'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned',
E                   'shareId': 10064,
E               },
E           ]

test/integration/test_tree.py:1896: AssertionError