Commit b4318ec4 authored by TechCoderX's avatar TechCoderX
Browse files

make test work again & update readme

parent 70054834
......@@ -154,7 +154,7 @@ test-live-staging-appbase-calls:
.PHONY: test-live-prod-appbase-calls
test-live-prod-appbase-calls:
pipenv run pytest --maxfail=1 tests/test_responses.py::test_appbase_responses --jussiurl https://api.hive.blog
pipenv run pytest --maxfail=1 tests/test_responses.py::test_appbase_responses --jussiurl https://api.steemit.com
./perf:
......
......@@ -74,7 +74,7 @@ Each urls key can have multiple endpoints for each namespace. For example:
```
{
"urls":[
["appbase", "https://api.steemitdev.com"]
["appbase", "https://api.hive.blog"]
]
}
```
......@@ -84,9 +84,9 @@ Each urls key can have multiple endpoints for each namespace. For example:
```
{
"urls":[
["appbase","https://api.steemitdev.com"],
["appbase.condenser_api.get_account_history","https://api-for-account-history.steemitdev.com"],
["appbase.condenser_api.get_ops_in_block","https://api-for-get-ops-in-block.steemitdev.com"]
["appbase","https://api.hive.blog"],
["appbase.condenser_api.get_account_history","https://api-for-account-history.hive.blog"],
["appbase.condenser_api.get_ops_in_block","https://api-for-get-ops-in-block.hive.blog"]
]
}
```
......@@ -147,4 +147,4 @@ Certain features of jussi can be configured using environment variables. If you
## Additional documentation
For more indepth documentation on jussi including examples, check out the section on it in the steem dev portal: https://developers.steem.io/services/#services-jussi
For more indepth documentation on jussi including examples, check out the section on it in the Hive dev portal: https://developers.hive.io/services/#services-jussi
......@@ -93,7 +93,7 @@ def chunkify(iterable, chunksize=3000):
class AsyncClient(object):
def __init__(self, *, url=None, **kwargs):
self.url = url or os.environ.get(
'STEEMD_HTTP_URL', 'https://api.hive.blog')
'STEEMD_HTTP_URL', 'https://steemd.steemitdev.com')
self.kwargs = kwargs
self.session = kwargs.get('session', None)
self.connector = get_in(kwargs, ['session', 'connector'])
......
......@@ -80,7 +80,7 @@ class SimpleSteemAPIClient(object):
tcp_keepalive=True,
**kwargs):
url = url or os.environ.get('STEEMD_HTTP_URL',
'https://api.hive.blog')
'https://steemd.steemitdev.com')
self.url = url
self.hostname = urlparse(url).hostname
self.return_with_args = kwargs.get('return_with_args', False)
......
......@@ -1139,7 +1139,7 @@ URN_TEST_REQUEST_DICTS = [
'params': _empty
},
'hived.database_api.get_dynamic_global_properties',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
1,
3
),
......@@ -1157,7 +1157,7 @@ URN_TEST_REQUEST_DICTS = [
'params': []
},
'hived.database_api.get_dynamic_global_properties.params=[]',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
1,
3
),
......@@ -1175,7 +1175,7 @@ URN_TEST_REQUEST_DICTS = [
'params': [1]
},
'hived.database_api.get_block.params=[1]',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
-2,
3
),
......@@ -1217,7 +1217,7 @@ URN_TEST_REQUEST_DICTS = [
'params': []
},
'hived.database_api.get_account_count.params=[]',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
3,
3
),
......@@ -1235,7 +1235,7 @@ URN_TEST_REQUEST_DICTS = [
'params': ["", ""]
},
'hived.login_api.login.params=["",""]',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
-1,
3
),
......@@ -1252,7 +1252,7 @@ URN_TEST_REQUEST_DICTS = [
'params': []
},
'hived.database_api.find_accounts.params=[]',
'https://api.hive.blog',
'wss://steemd.steemitdev.com',
3,
3
),
......
......@@ -8,7 +8,7 @@
"urls": [
[
"hived",
"https://api.hive.blog"
"wss://steemd.steemitdev.com"
]
],
"ttls": [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment