mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-24 04:14:16 +09:00
skip more tests
This commit is contained in:
parent
104af51a20
commit
135aab91b2
@ -51,6 +51,7 @@ class TestCookies(unittest.TestCase):
|
|||||||
decryptor = LinuxChromeCookieDecryptor('Chrome')
|
decryptor = LinuxChromeCookieDecryptor('Chrome')
|
||||||
assert decryptor.decrypt(encrypted_value) == value
|
assert decryptor.decrypt(encrypted_value) == value
|
||||||
|
|
||||||
|
@unittest.skipIf(not PBKDF2_AVAILABLE, 'PBKDF2 not available')
|
||||||
@unittest.skipIf(not CRYPTO_AVAILABLE, 'cryptography library not available')
|
@unittest.skipIf(not CRYPTO_AVAILABLE, 'cryptography library not available')
|
||||||
def test_chrome_cookie_decryptor_windows_v10(self):
|
def test_chrome_cookie_decryptor_windows_v10(self):
|
||||||
with MonkeyPatch(cookies, {
|
with MonkeyPatch(cookies, {
|
||||||
@ -61,6 +62,7 @@ class TestCookies(unittest.TestCase):
|
|||||||
decryptor = WindowsChromeCookieDecryptor('', Logger())
|
decryptor = WindowsChromeCookieDecryptor('', Logger())
|
||||||
assert decryptor.decrypt(encrypted_value) == value
|
assert decryptor.decrypt(encrypted_value) == value
|
||||||
|
|
||||||
|
@unittest.skipIf(not PBKDF2_AVAILABLE, 'PBKDF2 not available')
|
||||||
def test_chrome_cookie_decryptor_mac_v10(self):
|
def test_chrome_cookie_decryptor_mac_v10(self):
|
||||||
with MonkeyPatch(cookies, {'_get_mac_keyring_password': lambda *args, **kwargs: b'6eIDUdtKAacvlHwBVwvg/Q=='}):
|
with MonkeyPatch(cookies, {'_get_mac_keyring_password': lambda *args, **kwargs: b'6eIDUdtKAacvlHwBVwvg/Q=='}):
|
||||||
encrypted_value = b'v10\xb3\xbe\xad\xa1[\x9fC\xa1\x98\xe0\x9a\x01\xd9\xcf\xbfc'
|
encrypted_value = b'v10\xb3\xbe\xad\xa1[\x9fC\xa1\x98\xe0\x9a\x01\xd9\xcf\xbfc'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user