skip more tests

This commit is contained in:
Matthew Broadway 2021-06-17 20:43:42 +01:00
parent 104af51a20
commit 135aab91b2
No known key found for this signature in database
GPG Key ID: DDC0B82B6896B381

View File

@ -51,6 +51,7 @@ class TestCookies(unittest.TestCase):
decryptor = LinuxChromeCookieDecryptor('Chrome')
assert decryptor.decrypt(encrypted_value) == value
@unittest.skipIf(not PBKDF2_AVAILABLE, 'PBKDF2 not available')
@unittest.skipIf(not CRYPTO_AVAILABLE, 'cryptography library not available')
def test_chrome_cookie_decryptor_windows_v10(self):
with MonkeyPatch(cookies, {
@ -61,6 +62,7 @@ class TestCookies(unittest.TestCase):
decryptor = WindowsChromeCookieDecryptor('', Logger())
assert decryptor.decrypt(encrypted_value) == value
@unittest.skipIf(not PBKDF2_AVAILABLE, 'PBKDF2 not available')
def test_chrome_cookie_decryptor_mac_v10(self):
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'