<caseResult _class='hudson.tasks.junit.CaseResult'><age>1</age><className>OmeroPy.test.integration.gatewaytest.test_get_objects.TestGetObject</className><duration>2.321</duration><errorDetails>AttributeError: 'NoneType' object has no attribute 'id'</errorDetails><errorStackTrace>self = &lt;test.integration.gatewaytest.test_get_objects.TestGetObject object at 0x7f76b5ef3510&gt;

    def testAnnotationAnnotationLinks(self):
        """
        Test various annotations methods when parent is an Annotation or Group
        """
    
        group = self.new_group(perms='rwra--')
        client, user = self.new_client_and_user(group=group)
    
        conn = BlitzGateway(client_obj=client)
    
        parent = omero.gateway.TagAnnotationWrapper(conn)
        parent.setNs("test.annotation.parent")
        parent.setValue("parent Tag")
        parent.save()
    
        child = omero.gateway.CommentAnnotationWrapper(conn)
        child.setNs("test.annotation.child")
        child.setValue("test annotation child Comment")
        child.save()
        child2 = omero.gateway.LongAnnotationWrapper(conn)
        child2.setNs("test.annotation.child")
        child2.setValue(123)
        child2.save()
    
        # link child to parent
        parent.linkAnnotation(child)
        parent.linkAnnotation(child2)
        group = conn.getGroupFromContext()
        # Also annotate the Group
&gt;       group.linkAnnotation(child)

test/integration/gatewaytest/test_get_objects.py:820: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../.venv3/lib64/python3.11/site-packages/omero/gateway/__init__.py:1158: in linkAnnotation
    ann = self._linkAnnotation(ann)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../.venv3/lib64/python3.11/site-packages/omero/gateway/__init__.py:1090: in _linkAnnotation
    return self._linkObject(ann, "%sI" % link_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;_ExperimenterGroupWrapper id=2745&gt;
obj = &lt;CommentAnnotationWrapper id=5395&gt;
lnkobjtype = 'ExperimenterGroupAnnotationLinkI'

    def _linkObject(self, obj, lnkobjtype):
        """
        Saves the object to DB if needed - setting the permissions manually.
        Creates the object link and saves it, setting permissions manually.
        TODO: Can't set permissions manually in 4.2
            - Assumes world &amp; group writable
    
        :param obj:     The object to link
        :type obj:      :class:`BlitzObjectWrapper`
        """
        ctx = self._conn.SERVICE_OPTS.copy()
&gt;       ctx.setOmeroGroup(self.details.group.id.val)
                          ^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'NoneType' object has no attribute 'id'

../../../../.venv3/lib64/python3.11/site-packages/omero/gateway/__init__.py:1066: AttributeError</errorStackTrace><failedSince>63</failedSince><name>testAnnotationAnnotationLinks</name><properties></properties><skipped>false</skipped><status>FAILED</status></caseResult>