Skip to content

Commit

Permalink
Merge pull request #491 from dbast/mock
Browse files Browse the repository at this point in the history
Use mock from Python stdlib and upgrade test requirements versions
  • Loading branch information
newtonick authored Apr 13, 2024
2 parents a446b67 + 44498d8 commit 1b9fc3f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 2 additions & 3 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/screenshot_generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bip85.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_flows_settings.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_flows_view.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1b9fc3f

Please sign in to comment.