diff --git a/tests/base.py b/tests/base.py index 496e1b86c..e7bb2ddf4 100644 --- a/tests/base.py +++ b/tests/base.py @@ -1,6 +1,6 @@ import sys from dataclasses import dataclass -from mock import MagicMock, Mock, patch +from unittest.mock import MagicMock, Mock, patch from typing import Callable # Prevent importing modules w/Raspi hardware dependencies. diff --git a/tests/requirements.txt b/tests/requirements.txt index a66aac6b6..d42adea79 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,4 +1,3 @@ -coverage==7.2.1 -mock==4.0.3 -pytest==6.2.4 +coverage==7.3.1 +pytest==7.4.2 pytest-cov==4.1.0 diff --git a/tests/screenshot_generator/generator.py b/tests/screenshot_generator/generator.py index 20887567a..278df3389 100644 --- a/tests/screenshot_generator/generator.py +++ b/tests/screenshot_generator/generator.py @@ -2,7 +2,7 @@ import os import sys import time -from mock import Mock, patch, MagicMock +from unittest.mock import Mock, patch, MagicMock from seedsigner.helpers import embit_utils from seedsigner.models.settings import Settings diff --git a/tests/test_bip85.py b/tests/test_bip85.py index 5ade39175..737be5697 100644 --- a/tests/test_bip85.py +++ b/tests/test_bip85.py @@ -1,5 +1,5 @@ import pytest -from mock import MagicMock +from unittest.mock import MagicMock from seedsigner.models.seed import Seed from embit import bip39 diff --git a/tests/test_flows_settings.py b/tests/test_flows_settings.py index a6eb34d93..c449f679f 100644 --- a/tests/test_flows_settings.py +++ b/tests/test_flows_settings.py @@ -1,7 +1,7 @@ import os from typing import Callable -from mock import PropertyMock, patch +from unittest.mock import PropertyMock, patch # Must import test base before the Controller from base import FlowTest, FlowStep diff --git a/tests/test_flows_view.py b/tests/test_flows_view.py index 6d0324606..695ee093a 100644 --- a/tests/test_flows_view.py +++ b/tests/test_flows_view.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch # Must import test base before the Controller from base import FlowTest, FlowStep