Hub error message changed to include blocked/filtered.

This commit is contained in:
Jonathan Moody 2022-09-09 11:33:37 -05:00 committed by Lex Berezhny
parent 8903056648
commit 8c474a69de

View file

@ -1597,7 +1597,7 @@ class StreamCommands(ClaimTestCase):
# blocked content is not resolveable
error = (await self.resolve('lbry://@some_channel/bad_content'))['error']
self.assertEqual(error['name'], 'BLOCKED')
self.assertTrue(error['text'].startswith(f"Resolve of 'lbry://@some_channel#{some_channel_id[:1]}/bad_content#{bad_content_id[:1]}' was censored"))
self.assertTrue(error['text'].startswith(f"Resolve of 'lbry://@some_channel#{some_channel_id[:1]}/bad_content#{bad_content_id[:1]}' was blocked"))
self.assertTrue(error['censor']['short_url'].startswith('lbry://@blocking#'))
# a filtered/blocked channel impacts all content inside it