Repository: aristanetworks/cvprac (language: python)

Issue:
Test: Use `from unittest.mock import Mock`
tests currently expect `mock` module to be installed. `unittest.mock` has superseded this since Python 3.3


Discussion / hints:

Fix patch:
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 2395cb7..a0adc90 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -1,6 +1,5 @@
 check-manifest
 coverage
-mock
 pdoc
 pep8
 pyflakes


Test patch:
diff --git a/test/unit/test_client.py b/test/unit/test_client.py
index 8d484e9..2268600 100644
--- a/test/unit/test_client.py
+++ b/test/unit/test_client.py
@@ -36,7 +36,7 @@
 import json
 import unittest
 from itertools import cycle
-from mock import Mock
+from unittest.mock import Mock
 from requests.exceptions import HTTPError, ReadTimeout, JSONDecodeError
 from cvprac.cvp_client import CvpClient
 from cvprac.cvp_client_errors import CvpApiError, CvpSessionLogOutError