Cleanup _TESTS.

Fixed flake8 complaints.
This commit is contained in:
David Hood 2019-03-01 00:10:53 +11:00
parent eaec61aa92
commit 4d6404e654

View File

@ -197,88 +197,17 @@ class ABCIViewSeriesIE(ABCIViewIE):
IE_NAME = 'abc.net.au:iview:series'
_VALID_URL = r'https?://iview\.abc\.net\.au/show/(?P<id>[^/?#]+)'
_TESTS = [{
'url': 'https://iview.abc.net.au/show/play-school-celebrity-covers',
'info_dict': {
'title': "Play School Celebrity Covers",
'description': 'md5:5cf7b4e466b72ee1b930fc95b2a80ed7',
'uploader_id': 'abc4kids',
_TESTS = [
{
'url': 'https://iview.abc.net.au/show/play-school-story-time',
'info_dict': {
'title': "Play School Story Time",
'description': 'md5:2763b35f418d334d72e3d7f7fc7afb82',
'uploader_id': 'abc4kids',
},
'playlist_count': 24
},
'playlist_count': 31
},
{
'url': 'https://iview.abc.net.au/show/play-school-story-time',
'info_dict': {
'title': "Play School Story Time",
'description': 'md5:2763b35f418d334d72e3d7f7fc7afb82',
'uploader_id': 'abc4kids',
},
'playlist_count': 24
},
{
'url': 'https://iview.abc.net.au/show/play-school-story-time-languages',
'info_dict': {
'title': "Play School Story Time: Languages",
'description': 'md5:cca001fadcf1cb1508a9301c4fb0343a',
'uploader_id': 'abc4kids',
},
'playlist_count': 5
},
{
'url': 'https://iview.abc.net.au/show/big-teds-big-adventure',
'info_dict': {
'title': "Big Ted's Big Adventure",
'description': 'md5:77f30f44f632f0f4d312e3b9af1869f6',
'uploader_id': 'abc4kids',
},
'playlist_count': 20
},
{
'url': 'https://iview.abc.net.au/show/humptys-big-adventure',
'info_dict': {
'title': "Humpty's Big Adventure",
'description': 'md5:65c4335e1576ec92426f5d05a52c04f6',
'uploader_id': 'abc4kids',
},
'playlist_count': 16
},
{
'url': 'https://iview.abc.net.au/show/jemimas-big-adventure',
'info_dict': {
'title': "Jemima's Big Adventure",
'description': 'md5:be79641bb70f329ca40b924c25a7f293',
'uploader_id': 'abc4kids',
},
'playlist_count': 10
},
{
'url': 'https://iview.abc.net.au/show/joeys-big-adventure',
'info_dict': {
'title': "Joey's Big Adventure",
'description': 'md5:e3529b28bc25de54bceb96f0f4dbee7a',
'uploader_id': 'abc4kids',
},
'playlist_count': 13
},
{
'url': 'https://iview.abc.net.au/show/little-teds-big-adventure',
'info_dict': {
'title': "Little Ted's Big Adventure",
'description': 'md5:8d064998070bfafeec142547ab48982c',
'uploader_id': 'abc4kids',
},
'playlist_count': 20
},
{
'url': 'https://iview.abc.net.au/show/maurices-big-adventure',
'info_dict': {
'title': "Maurice's Big Adventure",
'description': 'md5:a41d7b9b0c87ef610c117a679f3efd5e',
'uploader_id': 'abc4kids',
},
'playlist_count': 12
}]
]
def _real_extract(self, url):
series_id = self._match_id(url)
@ -321,5 +250,3 @@ class ABCIViewSeriesIE(ABCIViewIE):
'uploader_id': entries[0].get('uploader_id'),
'entries': entries
}