add tests

Authored by: bashonly
This commit is contained in:
bashonly 2024-12-02 20:16:17 -06:00
parent c2daedbc0c
commit fa59ec5686
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -312,7 +312,12 @@ class VKIE(VKBaseIE):
{
'url': 'https://vk.com/clip30014565_456240946',
'only_matching': True,
}]
},
{
'url': 'https://vkvideo.ru/video-127553155_456242961',
'only_matching': True,
},
]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
@ -533,6 +538,9 @@ class VKUserVideosIE(VKBaseIE):
'title': 'Анонсы',
},
'playlist_mincount': 108,
}, {
'url': 'https://vkvideo.ru/@mobidevices',
'only_matching': True,
}]
_VIDEO = collections.namedtuple('Video', ['owner_id', 'id'])
@ -591,7 +599,7 @@ class VKUserVideosIE(VKBaseIE):
class VKWallPostIE(VKBaseIE):
IE_NAME = 'vk:wallpost'
_VALID_URL = r'https?://(?:(?:(?:(?:m|new)\.)?vk(?:video\.ru|\.com)/(?:[^?]+\?.*\bw=)?wall(?P<id>-?\d+_\d+)))'
_VALID_URL = r'https?://(?:(?:(?:(?:m|new)\.)?vk\.com/(?:[^?]+\?.*\bw=)?wall(?P<id>-?\d+_\d+)))'
_TESTS = [{
# public page URL, audio playlist
'url': 'https://vk.com/bs.official?w=wall-23538238_35',
@ -803,6 +811,9 @@ class VKPlayIE(VKPlayBaseIE):
}, {
'url': 'https://live.vkplay.ru/lebwa/record/33a4e4ce-e3ef-49db-bb14-f006cc6fabc9/records',
'only_matching': True,
}, {
'url': 'https://live.vkvideo.ru/lebwa/record/33a4e4ce-e3ef-49db-bb14-f006cc6fabc9/records',
'only_matching': True,
}]
def _real_extract(self, url):
@ -845,6 +856,9 @@ class VKPlayLiveIE(VKPlayBaseIE):
}, {
'url': 'https://live.vkplay.ru/lebwa',
'only_matching': True,
}, {
'url': 'https://live.vkvideo.ru/panterka',
'only_matching': True,
}]
def _real_extract(self, url):