1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 07:50:57 +00:00

core/tests: fix test suite after storage move

This commit is contained in:
matejcik 2019-10-31 16:34:16 +01:00
parent 5c93ecd53a
commit 1397bbfeb5
4 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
from mock import patch
import apps.common.storage.common
import storage.common
class MockStorage:
PATCH_METHODS = ("get", "set", "delete")
@ -8,7 +8,7 @@ class MockStorage:
def __init__(self):
self.namespace = {}
self.patches = [
patch(apps.common.storage.common, method, getattr(self, method))
patch(storage.common, method, getattr(self, method))
for method in self.PATCH_METHODS
]

View File

@ -1,8 +1,8 @@
from common import *
from storage import mock_storage
from mock_storage import mock_storage
import apps.common.storage.recovery
from apps.common import storage
import storage
import storage.recovery
from apps.management.recovery_device.recover import process_slip39
MNEMONIC_SLIP39_BASIC_20_3of6 = [

View File

@ -1,5 +1,6 @@
from common import *
from apps.common import mnemonic, storage
import storage
from apps.common import mnemonic
from apps.webauthn.credential import Fido2Credential
from trezor.crypto.curve import nist256p1
from trezor.crypto.hashlib import sha256

View File

@ -1,7 +1,7 @@
from common import *
from trezor.pin import pin_to_int
from trezor import config
from apps.common.storage import device
from storage import device
class TestConfig(unittest.TestCase):