Skip to content
Snippets Groups Projects
Commit dd528edc authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

fix unit test

parent 4ea2e8c4
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ core_unit = "STM" ...@@ -24,6 +24,7 @@ core_unit = "STM"
nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io",
"wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com",
"wss://steemd.minnowsupportproject.org"] "wss://steemd.minnowsupportproject.org"]
nodes_https = ["https://api.steemit.com"]
nodes_appbase = ["https://api.steemitstage.com", "wss://appbasetest.timcliff.com"] nodes_appbase = ["https://api.steemitstage.com", "wss://appbasetest.timcliff.com"]
test_list = ["wss://steemd.doesnot.exists", "wss://api.steemit.com", "wss://steemd.pevo.science", "wss://gtg.steem.house:8090", test_list = ["wss://steemd.doesnot.exists", "wss://api.steemit.com", "wss://steemd.pevo.science", "wss://gtg.steem.house:8090",
"https://api.steemit.com", "https://api.steemitstage.com", "wss://appbasetest.timcliff.com"] "https://api.steemit.com", "https://api.steemitstage.com", "wss://appbasetest.timcliff.com"]
...@@ -76,8 +77,8 @@ class Testcases(unittest.TestCase): ...@@ -76,8 +77,8 @@ class Testcases(unittest.TestCase):
def test_connect_test_node(self): def test_connect_test_node(self):
rpc = SteemNodeRPC(urls=test_list) rpc = SteemNodeRPC(urls=test_list)
self.assertIn(rpc.url, nodes + nodes_appbase) self.assertIn(rpc.url, nodes + nodes_appbase + nodes_https)
rpc.rpcclose() rpc.rpcclose()
rpc.rpcconnect() rpc.rpcconnect()
rpc.register_apis() rpc.register_apis()
self.assertIn(rpc.url, nodes + nodes_appbase) self.assertIn(rpc.url, nodes + nodes_appbase + nodes_https)
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