Asset list item: Don't show user.full_name in latest and random assets

This commit is contained in:
2018-10-04 12:30:05 +02:00
parent 6ad12d0098
commit 879bcffc2b
3 changed files with 15 additions and 6 deletions

View File

@@ -145,6 +145,7 @@ class LatestAssetsTest(AbstractPillarTest):
asset = latest_assets[0]
self.assertEquals(str(ok_id), asset['_id'])
self.assertEquals('Just a node name', asset['name'])
self.assertNotIn('user', asset)
class LatestCommentsTest(AbstractPillarTest):
@@ -301,3 +302,4 @@ class LatestCommentsTest(AbstractPillarTest):
self.assertEquals(str(ok_id), comment['_id'])
self.assertEquals('Comment', comment['name'])
self.assertEquals('एनिमेशन is animation in Hindi', comment['properties']['content'])
self.assertEquals('คนรักของผัดไทย', comment['user']['full_name'])