mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
adjusted to new planetmint-cryptoconditions imports
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
e28dcc31fa
commit
1918a08748
@ -2,8 +2,8 @@ import os
|
|||||||
import json
|
import json
|
||||||
import base58
|
import base58
|
||||||
from hashlib import sha3_256
|
from hashlib import sha3_256
|
||||||
from cryptoconditions.types.ed25519 import Ed25519Sha256
|
from planetmint_cryptoconditions.types.ed25519 import Ed25519Sha256
|
||||||
from cryptoconditions.types.zenroom import ZenroomSha256
|
from planetmint_cryptoconditions.types.zenroom import ZenroomSha256
|
||||||
from zenroom import zencode_exec
|
from zenroom import zencode_exec
|
||||||
from planetmint_driver import Planetmint
|
from planetmint_driver import Planetmint
|
||||||
from planetmint_driver.crypto import generate_keypair
|
from planetmint_driver.crypto import generate_keypair
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import json
|
|||||||
# For this test case we need the planetmint_driver.crypto package
|
# For this test case we need the planetmint_driver.crypto package
|
||||||
import base58
|
import base58
|
||||||
import sha3
|
import sha3
|
||||||
from cryptoconditions import Ed25519Sha256, ThresholdSha256
|
from planetmint_cryptoconditions import Ed25519Sha256, ThresholdSha256
|
||||||
from planetmint_driver.crypto import generate_keypair
|
from planetmint_driver.crypto import generate_keypair
|
||||||
|
|
||||||
# Import helper to deal with multiple nodes
|
# Import helper to deal with multiple nodes
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
import base58
|
import base58
|
||||||
from hashlib import sha3_256
|
from hashlib import sha3_256
|
||||||
from cryptoconditions.types.zenroom import ZenroomSha256
|
from planetmint_cryptoconditions.types.zenroom import ZenroomSha256
|
||||||
from planetmint_driver.crypto import generate_keypair
|
from planetmint_driver.crypto import generate_keypair
|
||||||
from .helper.hosts import Hosts
|
from .helper.hosts import Hosts
|
||||||
from zenroom import zencode_exec
|
from zenroom import zencode_exec
|
||||||
|
|||||||
@ -86,7 +86,7 @@ class TestBigchainApi(object):
|
|||||||
|
|
||||||
@pytest.mark.usefixtures("inputs")
|
@pytest.mark.usefixtures("inputs")
|
||||||
def test_non_create_input_not_found(self, b, user_pk):
|
def test_non_create_input_not_found(self, b, user_pk):
|
||||||
from cryptoconditions import Ed25519Sha256
|
from planetmint_cryptoconditions import Ed25519Sha256
|
||||||
from transactions.common.exceptions import InputDoesNotExist
|
from transactions.common.exceptions import InputDoesNotExist
|
||||||
from transactions.common.transaction import Input, TransactionLink
|
from transactions.common.transaction import Input, TransactionLink
|
||||||
|
|
||||||
|
|||||||
@ -232,7 +232,7 @@ def test_handle_threshold_overflow():
|
|||||||
|
|
||||||
|
|
||||||
def test_unsupported_condition_type():
|
def test_unsupported_condition_type():
|
||||||
from cryptoconditions.exceptions import UnsupportedTypeError
|
from planetmint_cryptoconditions.exceptions import UnsupportedTypeError
|
||||||
|
|
||||||
with pytest.raises(UnsupportedTypeError):
|
with pytest.raises(UnsupportedTypeError):
|
||||||
_fulfillment_from_details({"type": "a"})
|
_fulfillment_from_details({"type": "a"})
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import base58
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
from cryptoconditions import Ed25519Sha256
|
from planetmint_cryptoconditions import Ed25519Sha256
|
||||||
from ipld import multihash, marshal
|
from ipld import multihash, marshal
|
||||||
from hashlib import sha3_256
|
from hashlib import sha3_256
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user