Skip to content
Snippets Groups Projects
Commit 2fa6c1b6 authored by inso's avatar inso
Browse files

Enable back test on macos

parent 19dbe8db
No related branches found
No related tags found
No related merge requests found
...@@ -31,13 +31,10 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest): ...@@ -31,13 +31,10 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest):
self.password_asker = PasswordAskerDialog(self.account) self.password_asker = PasswordAskerDialog(self.account)
self.password_asker.password = "testsakia" self.password_asker.password = "testsakia"
self.password_asker.remember = True self.password_asker.remember = True
super().setUp()
def tearDown(self): def tearDown(self):
super().tearDown()
self.tearDownQuamash() self.tearDownQuamash()
@unittest.skipIf(sys.platform== "darwin", "Test not working on OSX, but feature is OK")
def test_register_community_empty_blockchain(self): def test_register_community_empty_blockchain(self):
mock = new_blockchain.get_mock(self.lp) mock = new_blockchain.get_mock(self.lp)
time.sleep(2) time.sleep(2)
...@@ -98,7 +95,6 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest): ...@@ -98,7 +95,6 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest):
self.lp.run_until_complete(process_community.async_exec()) self.lp.run_until_complete(process_community.async_exec())
self.assertEqual(process_community.result(), QDialog.Accepted) self.assertEqual(process_community.result(), QDialog.Accepted)
@unittest.skipIf(sys.platform== "darwin", "Test not working on OSX, but feature is OK")
def test_connect_community_empty_blockchain(self): def test_connect_community_empty_blockchain(self):
mock = new_blockchain.get_mock(self.lp) mock = new_blockchain.get_mock(self.lp)
time.sleep(2) time.sleep(2)
...@@ -145,7 +141,6 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest): ...@@ -145,7 +141,6 @@ class ProcessAddCommunity(unittest.TestCase, QuamashTest):
asyncio.ensure_future(exec_test()) asyncio.ensure_future(exec_test())
self.lp.run_until_complete(process_community.async_exec()) self.lp.run_until_complete(process_community.async_exec())
@unittest.skipIf(sys.platform== "darwin", "Test not working on OSX, but feature is OK")
def test_connect_community_wrong_pubkey(self): def test_connect_community_wrong_pubkey(self):
mock = nice_blockchain.get_mock(self.lp) mock = nice_blockchain.get_mock(self.lp)
time.sleep(2) time.sleep(2)
...@@ -187,7 +182,6 @@ Yours : wrong_pubkey, the network : 7Aqw6Efa9EzE7gtsc8SveLLrM7gm6NEGoywSv4FJx6pZ ...@@ -187,7 +182,6 @@ Yours : wrong_pubkey, the network : 7Aqw6Efa9EzE7gtsc8SveLLrM7gm6NEGoywSv4FJx6pZ
self.lp.run_until_complete(process_community.async_exec()) self.lp.run_until_complete(process_community.async_exec())
self.assertEqual(process_community.result(), QDialog.Rejected) self.assertEqual(process_community.result(), QDialog.Rejected)
@unittest.skipIf(sys.platform== "darwin", "Test not working on OSX, but feature is OK")
def test_connect_community_wrong_uid(self): def test_connect_community_wrong_uid(self):
mock = nice_blockchain.get_mock(self.lp) mock = nice_blockchain.get_mock(self.lp)
time.sleep(2) time.sleep(2)
...@@ -229,7 +223,6 @@ Yours : wrong_uid, the network : john""") ...@@ -229,7 +223,6 @@ Yours : wrong_uid, the network : john""")
self.lp.run_until_complete(process_community.async_exec()) self.lp.run_until_complete(process_community.async_exec())
self.assertEqual(process_community.result(), QDialog.Rejected) self.assertEqual(process_community.result(), QDialog.Rejected)
@unittest.skipIf(sys.platform== "darwin", "Test not working on OSX, but feature is OK")
def test_connect_community_success(self): def test_connect_community_success(self):
mock = nice_blockchain.get_mock(self.lp) mock = nice_blockchain.get_mock(self.lp)
time.sleep(2) time.sleep(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment