GolosChain / golos-python

Official Python Library for Golos Blockchain
MIT License
3 stars 4 forks source link

[0.16.5 testnet] Failed tests #12

Open bitphage opened 6 years ago

bitphage commented 6 years ago

Tests was run via webserver-http-endpoint = 0.0.0.0:8090

tests/steem/test_post.py::test_post_refresh FAILED
tests/steem/test_steemd.py::test_ensured_block_ranges FAILED

test_post.py is not meaningful because testnet has no posts.

test_ensured_block_ranges failed with different error than 0.16.4 https://github.com/GolosChain/golos-python/issues/11

    def test_ensured_block_ranges():
        """ Post should load correctly if passed a dict or string identifier. """
        s = Steemd()
>       assert list(pluck('block_num', s.get_blocks_range(100, 200))) == list(range(100, 200))

tests/steem/test_steemd.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
steem/steemd.py:220: in get_blocks_range
    return self.get_blocks(list(range(start, end)))
steem/steemd.py:201: in get_blocks
    for block in self._get_blocks(missing):
steem/steemd.py:184: in <genexpr>
    return ({**x, 'block_num': int(x['block_id'][:8], base=16)} for x in results if x)
steembase/http_client.py:226: in exec_multi_with_futures
    yield future.result()
/usr/lib64/python3.6/concurrent/futures/_base.py:398: in result
    return self.__get_result()
/usr/lib64/python3.6/concurrent/futures/_base.py:357: in __get_result
    raise self._exception
/usr/lib64/python3.6/concurrent/futures/thread.py:55: in run
    result = self.fn(*self.args, **self.kwargs)
steembase/http_client.py:186: in exec
    return_with_args=return_with_args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <steem.steemd.Steemd object at 0x7faf513f7048>, response = <urllib3.response.HTTPResponse object at 0x7faf51793940>, args = (109,)
return_with_args = False

    def _return(self, response=None, args=None, return_with_args=None):
        return_with_args = return_with_args or self.return_with_args
        result = None

        if response:
            try:
                response_json = json.loads(response.data.decode('utf-8'))
            except Exception as e:
                extra = dict(response=response, request_args=args, err=e)
                logger.info('failed to load response', extra=extra)
                result = None
            else:
                if 'error' in response_json:
                    error = response_json['error']

                    if self.re_raise:
                        error_message = error.get(
                            'detail', response_json['error']['message'])
>                       raise RPCError(error_message)
E                       steembase.exceptions.RPCError: Assert Exception (10)
E                       v.size() == 2: method specification invalid. Should be api.method

steembase/http_client.py:206: RPCError