From fbe36d2ba69a0c29bb6c154200896dadf04d248f Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 4 Dec 2023 16:56:32 +0000 Subject: [PATCH] Switch to standart mock. Use latest dev deps --- requirements-dev.txt | 7 +++---- tests/attempt/v2_test.py | 2 +- tests/processor_test.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 54a908f..5ae5f77 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,10 +1,9 @@ -flake8==3.8.2 -mock==4.0.2 +flake8==6.1.0 # mypy mypy==1.7.1 types-redis==4.6.0.11 # pytest -pytest==6.0.1 -pytest-cov==2.8.1 +pytest==7.4.3 +pytest-cov==4.1.0 diff --git a/tests/attempt/v2_test.py b/tests/attempt/v2_test.py index bcadbc0..40b5751 100644 --- a/tests/attempt/v2_test.py +++ b/tests/attempt/v2_test.py @@ -1,5 +1,5 @@ import pytest -from mock import Mock +from unittest.mock import Mock from skale.utils.account_tools import send_eth from transaction_manager.attempt_manager.base import NoCurrentAttemptError diff --git a/tests/processor_test.py b/tests/processor_test.py index 48be47a..5a1a169 100644 --- a/tests/processor_test.py +++ b/tests/processor_test.py @@ -1,4 +1,4 @@ -import mock +from unittest import mock import pytest from transaction_manager.config import MAX_RESUBMIT_AMOUNT