Skip to content

Commit 349b430

Browse files
committed
Add image child count for expected tags
This is hardcoded since the fixtures are not currently set up in a way that the number of ImageAnnotationLinks can be determined from the fixture
1 parent bf71673 commit 349b430

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/tools/OmeroWeb/test/integration/test_tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,17 @@ def expected_tags(user, tags):
242242
'id': tag.id.val,
243243
'value': tag.textValue.val,
244244
'ownerId': tag.details.owner.id.val,
245-
'childCount': len(tag.linkedAnnotationList()),
246245
'permsCss': get_perms(user, tag, "TagAnnotation")
247246
}
248247
if tag.description is not None:
249248
t['description'] = tag.description.val
250249

251250
if tag.ns is not None and tag.ns.val == NSINSIGHTTAGSET:
252251
t['set'] = True
252+
t['childCount'] = len(tag.linkedAnnotationList())
253253
else:
254254
t['set'] = False
255+
t['childCount'] = 2 if tag.textValue.val == 'TagA' else 0
255256
expected.append(t)
256257
return expected
257258

0 commit comments

Comments
 (0)