Skip to content

Commit ef0fd96

Browse files
committed
test_sqlthread codestyle refactoring
1 parent 5803410 commit ef0fd96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tests/test_sqlthread.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def _setup_db(self): # pylint: disable=W0622, redefined-builtin
3636
self.test_db.initialize_schema()
3737

3838
def get_table_schema(self, table_name):
39+
"""Get table list of column names and value types by table name"""
3940
self.test_db.cur.execute("""PRAGMA table_info({})""".format(table_name))
4041
res = self.test_db.cur.fetchall()
4142
res = [[x[1], x[2]] for x in res]
@@ -98,7 +99,7 @@ def test_inbox_table_init(self):
9899
['encodingtype', 'int'],
99100
['read', 'bool'],
100101
['sighash', 'blob']]
101-
self.assertEqual(res,check,"inbox table not valid")
102+
self.assertEqual(res, check, "inbox table not valid")
102103

103104
def test_sent_table_init(self):
104105
"""
@@ -216,6 +217,7 @@ def setUp(self):
216217
self._setup_db()
217218
self.test_db.cur.execute('''INSERT INTO settings VALUES('version','2')''')
218219

220+
219221
def version(self):
220222
"""
221223
Run SQL Scripts, Initialize DB with respect to versioning

0 commit comments

Comments
 (0)