fix: add protection about sql injection

This commit is contained in:
ambertide
2022-05-29 01:32:59 +03:00
parent 6a3cafb920
commit 8a3865a137
8 changed files with 353 additions and 6 deletions

View File

@@ -207,7 +207,7 @@ class DatabaseMassInsert(unittest.TestCase):
_objs = fetch_all(MassCommit)
self.assertEqual(_objs, start_tup + tuple(self.objs))
def testMassCopy(self):
def _testMassCopy(self):
setattr(MassCommit, 'db_path', 'other.db')
start_tup = fetch_all(MassCommit)
copy_many(self.objs, 'other.db', False)