rever changes

This commit is contained in:
Muzahid 2021-03-01 15:26:05 +05:30
parent 7a076e92fe
commit a38bcb2f04
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA
2 changed files with 3 additions and 9 deletions

View File

@ -2,13 +2,7 @@
BMConfigParser class definition and default configuration settings BMConfigParser class definition and default configuration settings
""" """
# import ConfigParser
try:
from configparser import ConfigParser
except ImportError:
import ConfigParser import ConfigParser
import os import os
import shutil import shutil
from datetime import datetime from datetime import datetime

View File

@ -198,7 +198,7 @@ class TestSqlThread(unittest.TestCase):
# Assertion # Assertion
self.cur.execute('''select * from inventory where objecttype = 'pubkey';''') self.cur.execute('''select * from inventory where objecttype = 'pubkey';''')
self.assertNotEqual(self.cur.fetchone(), 1, "Table knownnodes not deleted in versioning 5") self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory not deleted in versioning 4")
def test_sql_thread_version_3(self): def test_sql_thread_version_3(self):
""" """
@ -214,4 +214,4 @@ class TestSqlThread(unittest.TestCase):
# Assertion # Assertion
self.cur.execute(''' SELECT count(name) FROM sqlite_master WHERE type='table' AND name='inventory_backup' ''') self.cur.execute(''' SELECT count(name) FROM sqlite_master WHERE type='table' AND name='inventory_backup' ''')
self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory_backup not deleted in versioning 5") self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory_backup not deleted in versioning 2")