add tests for channel_name, which should work for urls too
This commit is contained in:
parent
3d1efbc9bb
commit
bad99de5b3
1 changed files with 7 additions and 0 deletions
|
@ -595,6 +595,13 @@ class StreamCommands(CommandTestCase):
|
||||||
|
|
||||||
claims = await self.claim_search(channel_id=channel_id)
|
claims = await self.claim_search(channel_id=channel_id)
|
||||||
self.assertEqual(len(claims), 3)
|
self.assertEqual(len(claims), 3)
|
||||||
|
# same is expected using name or name#claim_id urls
|
||||||
|
claims = await self.claim_search(channel_name="@abc")
|
||||||
|
self.assertEqual(len(claims), 3)
|
||||||
|
claims = await self.claim_search(channel_name="@abc", channel_id=channel_id)
|
||||||
|
self.assertEqual(len(claims), 3)
|
||||||
|
claims = await self.claim_search(channel_name=f"@abc#{channel_id}")
|
||||||
|
self.assertEqual(len(claims), 3)
|
||||||
|
|
||||||
await self.stream_abandon(claim_id=claims[0]['claim_id'])
|
await self.stream_abandon(claim_id=claims[0]['claim_id'])
|
||||||
await self.stream_abandon(claim_id=claims[1]['claim_id'])
|
await self.stream_abandon(claim_id=claims[1]['claim_id'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue