-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
columns = """[{"name":"name","type":"varchar",
"index": "1", "conditions":"true"},
{"name":"test","type":"varchar",
"index": "0", "conditions":"true"}]"""
permission = """{"insert": "true",
"update" : "true","new_column": "true"}"""
data = {"Name": "test", "ApplicationId":1,
"Columns": columns,
"Permissions": permission}
result = utils.call_contract(url, prKey, "NewTable", data, token)
tx = utils.txstatus(url,
self.config["1"]["time_wait_tx_in_block"],
result['hash'], token)
contract = self.contracts["dbInsert"]
self.check_contract(contract["code"], contract["asert"])
why not move that piece of code to helper functions, it copypasted tree times, in all test_contact_db..
https://github.com/GenesisKernel/genesis-tests/blob/6f57ca7ef9dc460cf469ac3643267cc076480d3f/contract_functions_tests.py#L192
Metadata
Metadata
Assignees
Labels
No labels