Merge pull request #380 from baking-bad/aux/3.13.6 #131
GitHub Actions / Test Results
failed
Dec 13, 2024 in 0s
1 fail, 12 skipped, 1β112 pass in 2m 10s
1β125 testsβββ1β112 β
ββ2m 10s β±οΈ
ββββ4 suitesβββββ12 π€
ββββ4 filesββββββββ1 β
Results for commit 5c0662a.
Annotations
Check warning on line 0 in tests.integration_tests.test_sender.SenderContractTest
github-actions / Test Results
test_no_source (tests.integration_tests.test_sender.SenderContractTest) failed
integration_test_results.xmlβ[took 1s]
Raw output
pytezos.rpc.node.RpcError: ('Internal Server Error',)
self = <tests.integration_tests.test_sender.SenderContractTest testMethod=test_no_source>
def test_no_source(self):
> res = self.ci.default().run_code(storage=initial, sender=sender)
tests/integration_tests/test_sender.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/pytezos/jupyter.py:90: in __call__
return method(self.obj, *args, **kwargs)
src/pytezos/contract/call.py:246: in run_code
res = self.shell.blocks[self.block_id].helpers.scripts.run_code.post(query)
src/pytezos/jupyter.py:90: in __call__
return method(self.obj, *args, **kwargs)
src/pytezos/rpc/helpers.py:272: in post
return self._post(json=invocation)
src/pytezos/rpc/query.py:131: in _post
return self.node.post(
src/pytezos/rpc/node.py:143: in post
response = self.request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytezos.rpc.node.RpcNode object at 0x7f036b1a8c10>
Node address
https://rpc.tzkt.io/mainnet
method = 'POST', path = '/chains/main/blocks/head/helpers/scripts/run_code'
kwargs = {'json': {'amount': '0', 'balance': '0', 'chain_id': 'NetXdQprcVkpaWU', 'entrypoint': 'default', ...}, 'params': None}
res = <Response [500]>
def request(self, method: str, path: str, **kwargs) -> requests.Response:
"""Perform HTTP request to node.
:param method: one of GET/POST/PUT/DELETE
:param path: path to endpoint
:param kwargs: requests.request arguments
:raises RpcError: node has returned an error
:returns: node response
"""
logger.debug('>>>>> %s %s\n%s', method, path, json.dumps(kwargs, indent=4))
res = requests.request(
method=method,
url=_urljoin(self.uri[0], path),
headers={'content-type': 'application/json', 'user-agent': 'PyTezos', **self.headers},
timeout=kwargs.pop('timeout', None) or 60,
**kwargs,
)
if res.status_code == 401:
logger.debug('<<<<< %s\n%s', res.status_code, res.text)
raise RpcError(f'Unauthorized: {path}')
if res.status_code == 404:
logger.debug('<<<<< %s\n%s', res.status_code, res.text)
raise RpcError(f'Not found: {path}')
if res.status_code != 200:
logger.debug('<<<<< %s\n%s', res.status_code, pformat(res.text, indent=4))
> raise RpcError.from_response(res)
E pytezos.rpc.node.RpcError: ('Internal Server Error',)
src/pytezos/rpc/node.py:118: RpcError
Loading