Skip to content
Snippets Groups Projects
Commit 5d225006 authored by Holger's avatar Holger
Browse files

Add more unit tests

parent 0fda10d4
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
......@@ -388,6 +388,14 @@ class Testcases(unittest.TestCase):
runner.invoke(cli, ['-o', 'set', 'nodes', self.node_list])
result = runner.invoke(cli, ['updatenodes', '--hive', '--test'])
self.assertEqual(result.exit_code, 0)
result = runner.invoke(cli, ['updatenodes', '--steem'])
self.assertEqual(result.exit_code, 0)
result = runner.invoke(cli, ['updatenodes'])
self.assertEqual(result.exit_code, 0)
result = runner.invoke(cli, ['updatenodes', '--hive'])
self.assertEqual(result.exit_code, 0)
result = runner.invoke(cli, ['updatenodes'])
self.assertEqual(result.exit_code, 0)
runner.invoke(cli, ['-o', 'set', 'nodes', str(self.node_list)])
def test_currentnode(self):
......
......@@ -455,3 +455,10 @@ class Testcases(unittest.TestCase):
exceptions.MissingKeyError
):
bts.broadcast(tx=tx)
def test_switch_blockchain(self):
bts = self.bts
bts.switch_blockchain("steem", update_nodes=True)
assert not bts.is_hive
bts.switch_blockchain("hive", update_nodes=True)
assert bts.is_hive
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