You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-fido2/python-fido2-mock.patch

49 lines
1.8 KiB

diff -up python-fido2-0.9.3/test/test_client.py.mock python-fido2-0.9.3/test/test_client.py
--- python-fido2-0.9.3/test/test_client.py.mock 2021-11-09 04:15:13.000000000 -0700
+++ python-fido2-0.9.3/test/test_client.py 2022-05-19 20:47:06.165307669 -0600
@@ -29,7 +29,7 @@
from __future__ import absolute_import, unicode_literals
-import mock
+from unittest import mock
import unittest
from threading import Event, Timer
from binascii import a2b_hex
diff -up python-fido2-0.9.3/test/test_ctap2.py.mock python-fido2-0.9.3/test/test_ctap2.py
--- python-fido2-0.9.3/test/test_ctap2.py.mock 2021-11-09 04:15:13.000000000 -0700
+++ python-fido2-0.9.3/test/test_ctap2.py 2022-05-19 20:44:27.276937443 -0600
@@ -45,7 +45,7 @@ from cryptography.hazmat.backends import
from cryptography.hazmat.primitives.asymmetric import ec
import unittest
-import mock
+from unittest import mock
_AAGUID = a2b_hex("F8A011F38C0A4D15800617111F9EDC7D")
_INFO = a2b_hex(
diff -up python-fido2-0.9.3/test/test_pcsc.py.mock python-fido2-0.9.3/test/test_pcsc.py
--- python-fido2-0.9.3/test/test_pcsc.py.mock 2021-11-09 04:15:13.000000000 -0700
+++ python-fido2-0.9.3/test/test_pcsc.py 2022-05-19 20:45:11.291317012 -0600
@@ -28,7 +28,7 @@
from __future__ import absolute_import, unicode_literals
import unittest
-import mock
+from unittest import mock
import sys
from fido2.hid import CTAPHID
diff -up python-fido2-0.9.3/test/test_ctap1.py.mock python-fido2-0.9.3/test/test_ctap1.py
--- python-fido2-0.9.3/test/test_ctap1.py.mock 2021-11-09 04:15:13.000000000 -0700
+++ python-fido2-0.9.3/test/test_ctap1.py 2022-05-19 20:49:43.312664818 -0600
@@ -30,7 +30,7 @@ from __future__ import absolute_import,
from fido2.ctap1 import Ctap1, ApduError
from binascii import a2b_hex
import unittest
-import mock
+from unittest import mock
class TestCtap1(unittest.TestCase):