Remove randbytes from eth tests
This commit is contained in:
parent
e7fcde7530
commit
8f78e80bb1
@ -23,7 +23,7 @@ licence_files =
|
|||||||
|
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
python_requires = >= 3.6
|
python_requires = >= 3.8
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
packages =
|
packages =
|
||||||
cic
|
cic
|
||||||
|
@ -36,18 +36,18 @@ class TestCICBase(unittest.TestCase):
|
|||||||
for i in range(3):
|
for i in range(3):
|
||||||
address_bytes = f.read(32)
|
address_bytes = f.read(32)
|
||||||
addresses.append(add_0x(address_bytes.hex()))
|
addresses.append(add_0x(address_bytes.hex()))
|
||||||
f.close()
|
|
||||||
|
|
||||||
# addresses = [
|
|
||||||
# add_0x(random.randbytes(20).hex()),
|
|
||||||
# add_0x(random.randbytes(20).hex()),
|
|
||||||
# add_0x(random.randbytes(20).hex()),
|
|
||||||
# ]
|
|
||||||
|
|
||||||
self.token_symbol = 'FOO'
|
self.token_symbol = 'FOO'
|
||||||
self.token_address = add_0x(random.randbytes(32).hex())
|
|
||||||
self.token_index_address = add_0x(random.randbytes(32).hex())
|
token_address_bytes = f.read(20)
|
||||||
self.address_declarator_address = add_0x(random.randbytes(32).hex())
|
token_index_address_bytes = f.read(20)
|
||||||
|
address_declarator_address_bytes = f.read(20)
|
||||||
|
|
||||||
|
self.token_address = add_0x(token_address_bytes.hex())
|
||||||
|
self.token_index_address = add_0x(token_index_address_bytes.hex())
|
||||||
|
self.address_declarator_address = add_0x(address_declarator_address_bytes.hex())
|
||||||
|
|
||||||
|
f.close()
|
||||||
|
|
||||||
self.outputs_dir = tempfile.mkdtemp()
|
self.outputs_dir = tempfile.mkdtemp()
|
||||||
self.outputs_writer = KVWriter(self.outputs_dir)
|
self.outputs_writer = KVWriter(self.outputs_dir)
|
||||||
|
@ -41,8 +41,15 @@ class TestCICEthBase(EthTesterCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestCICEthBase, self).setUp()
|
super(TestCICEthBase, self).setUp()
|
||||||
random.seed(42)
|
random.seed(42)
|
||||||
self.initial_description = add_0x(random.randbytes(32).hex())
|
|
||||||
self.token_address = add_0x(random.randbytes(20).hex())
|
f = open('/dev/urandom', 'rb')
|
||||||
|
#self.initial_description = add_0x(random.randbytes(32).hex())
|
||||||
|
#self.token_address = add_0x(random.randbytes(20).hex())
|
||||||
|
initial_description_bytes = f.read(32)
|
||||||
|
self.initial_description = add_0x(initial_description_bytes.hex())
|
||||||
|
token_address_bytes = f.read(20)
|
||||||
|
self.token_address = add_0x(token_address_bytes.hex())
|
||||||
|
f.close()
|
||||||
|
|
||||||
addresses = self.keystore.list()
|
addresses = self.keystore.list()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user