Skip to content

Commit

Permalink
Updated: TV4 Tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Nov 5, 2023
1 parent 90cf6c5 commit 59ea231
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
5 changes: 4 additions & 1 deletion tests/channel_tests/channeltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ def _switch_channel(self, channel_code):
self.channel = ChannelIndex.get_register().get_channel(self._channel, self._code)
return self.channel

def _test_folder_url(self, url, expected_results=None, exact_results=False, headers=None, retry=1):
def _test_folder_url(self, url, expected_results=None, exact_results=False, headers=None,
retry=1, json=None, data=None):
self.assertIsNotNone(self.channel)

while retry >= 0:
try:
item = self._get_media_item(url)
item.postJson = json
item.postData = data
item.HttpHeaders.update(headers or {})

items = self.channel.process_folder_list(item)
Expand Down
Loading

0 comments on commit 59ea231

Please sign in to comment.