Failed
OmeroWeb.test.integration.test_tree.TestTree.test_marshal_images_dataset_no_pixels (from pytest)
Error Message
AssertionError: assert [{'archived':...': 4585, ...}] == [{'id': 7371,...sOwned', ...}] At index 0 diff: {'id': 7371, 'archived': None, 'name': 'ImageA', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': None, 'sizeY': None, 'sizeZ': None, 'sizeT': None} != {'id': 7371, 'name': 'ImageA', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': None, 'sizeY': None, 'sizeT': None, 'sizeZ': None} Full diff: [ { + 'archived': None, 'id': 7371, 'name': 'ImageA', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeT': None, 'sizeX': None, 'sizeY': None, 'sizeZ': None, }, { + 'archived': None, 'id': 7370, 'name': 'ImageB', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeT': None, 'sizeX': None, 'sizeY': None, 'sizeZ': None, }, ]
Stacktrace
self = <test_tree.TestTree object at 0x7fbf83bd2a60> userA = (<omero.clients.BaseClient object at 0x7fbfd86208e0>, object #0 (::omero::model::Experimenter) { _id = object #1 (...nnotationLinksSeq = { } _annotationLinksLoaded = False _annotationLinksCountPerOwner = { } }) project_hierarchy_userA_groupA = [object #0 (::omero::model::Project) { _id = object #1 (::omero::RLong) { _val = 1065 } _detai...{ } _name = object #127 (::omero::RString) { _val = ImageB } _description = <object #14> }] def test_marshal_images_dataset_no_pixels(self, userA, project_hierarchy_userA_groupA): """ Test marshalling images for userA, groupA, datasetA Images have no pixels, so should load with 'null' sizeX/Y/Z/T """ conn = get_connection(userA) dataset = project_hierarchy_userA_groupA[2] images = project_hierarchy_userA_groupA[4:6] expected = expected_images(userA, images, extraValues={'sizeX': None, 'sizeY': None, 'sizeT': None, 'sizeZ': None}) marshaled = marshal_images(conn=conn, dataset_id=dataset.id.val, load_pixels=True) > assert marshaled == expected E AssertionError: assert [{'archived':...': 4585, ...}] == [{'id': 7371,...sOwned', ...}] E E At index 0 diff: {'id': 7371, 'archived': None, 'name': 'ImageA', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': None, 'sizeY': None, 'sizeZ': None, 'sizeT': None} != {'id': 7371, 'name': 'ImageA', 'ownerId': 4585, 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', 'sizeX': None, 'sizeY': None, 'sizeT': None, 'sizeZ': None} E E Full diff: E [ E { E + 'archived': None, E 'id': 7371, E 'name': 'ImageA', E 'ownerId': 4585, E 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', E 'sizeT': None, E 'sizeX': None, E 'sizeY': None, E 'sizeZ': None, E }, E { E + 'archived': None, E 'id': 7370, E 'name': 'ImageB', E 'ownerId': 4585, E 'permsCss': 'canEdit canAnnotate canLink canDelete canChgrp isOwned', E 'sizeT': None, E 'sizeX': None, E 'sizeY': None, E 'sizeZ': None, E }, E ] test/integration/test_tree.py:1841: AssertionError