tests: Move to trezorlib.tests

This commit is contained in:
Saleem Rashid 2017-12-19 09:19:38 +00:00 committed by Pavol Rusnak
parent 57ad0fe729
commit 1c8f03968c
88 changed files with 50 additions and 48 deletions

View File

@ -1,3 +1,3 @@
recursive-include tests *.py *.sh *.json
recursive-include bash_completion.d *.sh
include trezorlib/tests/txcache/*.json
include COPYING

View File

@ -29,6 +29,8 @@ setup(
'trezorlib',
'trezorlib.messages',
'trezorlib.qt',
'trezorlib.tests.device_tests',
'trezorlib.tests.unit_tests',
],
scripts=['trezorctl'],
install_requires=install_requires,

View File

View File

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages

View File

@ -19,7 +19,7 @@
from __future__ import print_function
import unittest
import common
from . import common
import time

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import hashlib
from trezorlib import ed25519raw, ed25519cosi

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -18,7 +18,7 @@
import pytest
import unittest
import common
from . import common
from trezorlib import messages as proto
import trezorlib.ckd_public as bip32

View File

@ -1,5 +1,5 @@
import unittest
import common
from . import common
import trezorlib.ckd_public as bip32
from trezorlib import messages as proto

View File

@ -1,5 +1,5 @@
import unittest
import common
from . import common
import trezorlib.ckd_public as bip32
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import trezorlib.ckd_public as bip32
from trezorlib import messages as proto

View File

@ -20,7 +20,7 @@ from __future__ import print_function
import unittest
import math
import common
from . import common
import trezorlib.messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import trezorlib.ckd_public as bip32

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
class TestDeviceLoad(common.TrezorTest):

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
class TestDeviceLoadXprv(common.TrezorTest):

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -19,7 +19,7 @@
from __future__ import print_function
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -19,7 +19,7 @@
from __future__ import print_function
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto
from mnemonic import Mnemonic

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto
from mnemonic import Mnemonic

View File

@ -22,7 +22,7 @@ import unittest
import binascii
import hashlib
import struct
import common
from . import common
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -16,7 +16,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -18,7 +18,7 @@
'''
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
import base64

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
import base64

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
import base64

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
from trezorlib import messages as proto

View File

@ -19,7 +19,7 @@
from __future__ import print_function
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -18,7 +18,7 @@
import unittest
import binascii
import common
from . import common
from trezorlib import messages as proto
from trezorlib.client import CallException

View File

@ -20,7 +20,7 @@ from __future__ import print_function
import time
import unittest
import common
from . import common
from trezorlib import messages as proto
from trezorlib.client import PinException, CallException

View File

@ -17,7 +17,7 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import unittest
import common
from . import common
import binascii
from trezorlib import messages as proto

View File

@ -21,7 +21,7 @@ from __future__ import print_function
import unittest
import binascii
import sys
import common
from . import common
from trezorlib import messages as proto

View File