mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
more test cleanup
This commit is contained in:
parent
820e6b8847
commit
38d3aea273
@ -1,8 +1,10 @@
|
||||
import pytest
|
||||
|
||||
from web3.utils.compat import subprocess
|
||||
from eth_utils import (
|
||||
force_text,
|
||||
)
|
||||
|
||||
from web3.utils.string import force_text
|
||||
from web3.utils.compat import subprocess
|
||||
|
||||
|
||||
def test_admin_setSolc(web3, skip_if_testrpc):
|
||||
|
||||
@ -6,15 +6,16 @@ from hypothesis import (
|
||||
|
||||
import random
|
||||
|
||||
from web3.utils.functional import (
|
||||
cast_return_to_dict,
|
||||
from eth_utils import (
|
||||
to_dict,
|
||||
)
|
||||
|
||||
from web3.utils.caching import (
|
||||
generate_cache_key,
|
||||
)
|
||||
|
||||
|
||||
@cast_return_to_dict
|
||||
@to_dict
|
||||
def shuffle_dict(_dict):
|
||||
keys = list(_dict.keys())
|
||||
random.shuffle(keys)
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
import pytest
|
||||
|
||||
from eth_utils import (
|
||||
encode_hex,
|
||||
remove_0x_prefix,
|
||||
)
|
||||
|
||||
from eth_abi import (
|
||||
encode_abi,
|
||||
)
|
||||
|
||||
from web3.utils.encoding import encode_hex
|
||||
from web3.utils.formatting import remove_0x_prefix
|
||||
|
||||
|
||||
def test_contract_constructor_abi_encoding_with_no_constructor_fn(MathContract, MATH_CODE):
|
||||
deploy_data = MathContract._encode_constructor_data()
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
from web3.utils.string import force_bytes
|
||||
from eth_utils import (
|
||||
force_bytes,
|
||||
)
|
||||
|
||||
|
||||
def test_contract_deployment_no_constructor(web3, MathContract,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from web3.utils.abi import (
|
||||
from eth_utils import (
|
||||
function_abi_to_4byte_selector,
|
||||
)
|
||||
|
||||
|
||||
@ -2,14 +2,15 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from web3.utils.transactions import (
|
||||
wait_for_transaction_receipt,
|
||||
)
|
||||
from web3.utils.string import (
|
||||
from eth_utils import (
|
||||
force_text,
|
||||
force_bytes,
|
||||
)
|
||||
|
||||
from web3.utils.transactions import (
|
||||
wait_for_transaction_receipt,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def math_contract(web3, MathContract):
|
||||
|
||||
@ -1,14 +1,13 @@
|
||||
import pytest
|
||||
|
||||
from eth_utils import (
|
||||
force_text,
|
||||
decode_hex,
|
||||
)
|
||||
|
||||
from web3.utils.events import (
|
||||
get_event_data,
|
||||
)
|
||||
from web3.utils.string import (
|
||||
force_text,
|
||||
)
|
||||
from web3.utils.encoding import (
|
||||
decode_hex,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
from web3.utils.address import (
|
||||
from eth_utils import (
|
||||
is_address,
|
||||
)
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
from web3.utils.types import (
|
||||
from eth_utils import (
|
||||
is_integer,
|
||||
)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from web3.utils.encoding import is_string
|
||||
from eth_utils import is_string
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user