Skip to content
Snippets Groups Projects
Commit 0930ed18 authored by Holger's avatar Holger
Browse files

Add Changelog for 0.20.14 and improve unit tests

parent 893b3318
No related branches found
No related tags found
No related merge requests found
Changelog Changelog
========= =========
0.20.14
-------
* unit tests fixed
* Account: support for retrieving all delegations (thanks to crookon, PR #129)
* Change recovery account / list recovery account change requests (thanks to crokkon, PR #130)
* Exclude sbd_interest_rate, as it is not present on the VIT blockchain (thanks to svitx, PR #132)
* connect for beempy createwallet (thanks to crokkon, PR #133)
0.20.13 0.20.13
------- -------
* beempy post improved * beempy post improved
......
...@@ -37,7 +37,7 @@ class Testcases(unittest.TestCase): ...@@ -37,7 +37,7 @@ class Testcases(unittest.TestCase):
keys={"active": wif}, keys={"active": wif},
num_retries=10 num_retries=10
) )
cls.account = Account("beembot", full=True, steem_instance=cls.bts) cls.account = Account("beembot", steem_instance=cls.bts)
set_shared_steem_instance(cls.bts) set_shared_steem_instance(cls.bts)
def test_account(self): def test_account(self):
...@@ -405,7 +405,7 @@ class Testcases(unittest.TestCase): ...@@ -405,7 +405,7 @@ class Testcases(unittest.TestCase):
op["from"]) op["from"])
def test_json_export(self): def test_json_export(self):
account = self.account account = Account("beembot", steem_instance=self.bts)
if account.steem.rpc.get_use_appbase(): if account.steem.rpc.get_use_appbase():
content = self.bts.rpc.find_accounts({'accounts': [account["name"]]}, api="database")["accounts"][0] content = self.bts.rpc.find_accounts({'accounts': [account["name"]]}, api="database")["accounts"][0]
else: else:
......
...@@ -30,12 +30,6 @@ class Testcases(unittest.TestCase): ...@@ -30,12 +30,6 @@ class Testcases(unittest.TestCase):
keys={"active": wif}, keys={"active": wif},
num_retries=10 num_retries=10
) )
cls.testnet = Steem(
node="https://testnet.steemitdev.com",
nobroadcast=True,
keys={"active": wif},
num_retries=10
)
# from getpass import getpass # from getpass import getpass
# self.bts.wallet.unlock(getpass()) # self.bts.wallet.unlock(getpass())
set_shared_steem_instance(cls.bts) set_shared_steem_instance(cls.bts)
...@@ -95,15 +89,8 @@ class Testcases(unittest.TestCase): ...@@ -95,15 +89,8 @@ class Testcases(unittest.TestCase):
self.assertTrue(vote.rep is not None) self.assertTrue(vote.rep is not None)
self.assertTrue(vote.time is not None) self.assertTrue(vote.time is not None)
@parameterized.expand([ def test_keyerror(self):
("normal"), bts = self.bts
("testnet"),
])
def test_keyerror(self, node_param):
if node_param == "normal":
bts = self.bts
else:
bts = self.testnet
with self.assertRaises( with self.assertRaises(
exceptions.VoteDoesNotExistsException exceptions.VoteDoesNotExistsException
): ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment