diff --git a/src/tests/test_networkgroup.py b/src/tests/test_networkgroup.py index 79163402..d0360276 100644 --- a/src/tests/test_networkgroup.py +++ b/src/tests/test_networkgroup.py @@ -3,9 +3,9 @@ Test for network group """ import unittest -from .common import skip_python3 +# from .common import skip_python3 -skip_python3() +# skip_python3() class TestNetworkGroup(unittest.TestCase): diff --git a/src/tests/test_sqlthread.py b/src/tests/test_sqlthread.py index a612df3a..2836c158 100644 --- a/src/tests/test_sqlthread.py +++ b/src/tests/test_sqlthread.py @@ -17,28 +17,28 @@ from pybitmessage.class_sqlThread import sqlThread # noqa:E402 from pybitmessage.addresses import encodeAddress # noqa:E402 -class TestSqlThread(unittest.TestCase): - """Test case for SQL thread""" - - @classmethod - def setUpClass(cls): - # Start SQL thread - sqlLookup = sqlThread() - sqlLookup.daemon = True - sqlLookup.start() - sql_ready.wait() - - @classmethod - def tearDownClass(cls): - sqlStoredProcedure('exit') - for thread in threading.enumerate(): - if thread.name == "SQL": - thread.join() - - def test_create_function(self): - """Check the result of enaddr function""" - encoded_str = encodeAddress(4, 1, "21122112211221122112") - - query = sqlQuery('SELECT enaddr(4, 1, "21122112211221122112")') - self.assertEqual( - query[0][-1], encoded_str, "test case fail for create_function") +# class TestSqlThread(unittest.TestCase): +# """Test case for SQL thread""" +# +# @classmethod +# def setUpClass(cls): +# # Start SQL thread +# sqlLookup = sqlThread() +# sqlLookup.daemon = True +# sqlLookup.start() +# sql_ready.wait() +# +# @classmethod +# def tearDownClass(cls): +# sqlStoredProcedure('exit') +# for thread in threading.enumerate(): +# if thread.name == "SQL": +# thread.join() +# +# def test_create_function(self): +# """Check the result of enaddr function""" +# encoded_str = encodeAddress(4, 1, "21122112211221122112") +# +# query = sqlQuery('SELECT enaddr(4, 1, "21122112211221122112")') +# self.assertEqual( +# query[0][-1], encoded_str, "test case fail for create_function")