1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

fix tests indentation

This commit is contained in:
bashonly 2025-02-23 09:00:07 +00:00 committed by GitHub
parent 24cde65108
commit c66b2975a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,10 +12,8 @@
class SoftWhiteUnderbellyIE(InfoExtractor):
_LOGIN_URL = 'https://www.softwhiteunderbelly.com/login'
_NETRC_MACHINE = 'softwhiteunderbelly'
_VALID_URL = r'https?://(?:www\.)?softwhiteunderbelly\.com/videos/(?P<id>[\w-]+)'
_TESTS = [
{
_TESTS = [{
'url': 'https://www.softwhiteunderbelly.com/videos/kenneth-final1',
'note': 'A single Soft White Underbelly Episode',
'md5': '8e79f29ec1f1bda6da2e0b998fcbebb8',
@ -32,8 +30,7 @@ class SoftWhiteUnderbellyIE(InfoExtractor):
'duration': 512,
},
'expected_warnings': ['Failed to parse XML: not well-formed'],
},
{
}, {
'url': 'https://www.softwhiteunderbelly.com/videos/tj-2-final-2160p',
'note': 'A single Soft White Underbelly Episode',
'md5': '286bd8851b4824c62afb369e6f307036',
@ -50,12 +47,10 @@ class SoftWhiteUnderbellyIE(InfoExtractor):
'uploader_id': 'user80538407',
},
'expected_warnings': ['Failed to parse XML: not well-formed'],
},
]
}]
def _perform_login(self, username, password):
signin_page = self._download_webpage(self._LOGIN_URL, None, 'Fetching authenticity token')
self._download_webpage(
self._LOGIN_URL, None, 'Logging in',
data=urlencode_postdata({