Module: kamailio
Branch: master
Commit: ad1365935e2f021095e6e14aca03da54d3862d5b
URL:
https://github.com/kamailio/kamailio/commit/ad1365935e2f021095e6e14aca03da5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-01-04T12:20:56+01:00
kamctl: dbtextdb/dbtextdb_test - do not store unused result of query
---
Modified: utils/kamctl/dbtextdb/dbtextdb_test.py
---
Diff:
https://github.com/kamailio/kamailio/commit/ad1365935e2f021095e6e14aca03da5…
Patch:
https://github.com/kamailio/kamailio/commit/ad1365935e2f021095e6e14aca03da5…
---
diff --git a/utils/kamctl/dbtextdb/dbtextdb_test.py
b/utils/kamctl/dbtextdb/dbtextdb_test.py
index 54ce274c725..8762de1b3da 100644
--- a/utils/kamctl/dbtextdb/dbtextdb_test.py
+++ b/utils/kamctl/dbtextdb/dbtextdb_test.py
@@ -500,7 +500,7 @@ def testExecute(self):
db_conn.CleanUp()
query = ('delete from unsorted_table where id = 5;')
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'id': 1, 'user': 'fred',
'domain':
'test.com', 'number': 2125551234},
{'id': 4, 'user': 'alex',
'domain':
@@ -514,7 +514,7 @@ def testExecute(self):
# test insert with auto increment
query = ("insert into unsorted_table set user='jake',
domain='test.com',"
'number = 2125551456;')
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'id': 1, 'user': 'fred',
'domain':
'test.com', 'number': 2125551234},
{'id': 4, 'user': 'alex',
'domain':
@@ -531,7 +531,7 @@ def testExecute(self):
# test insert with null value
query = ("insert into test set col1='asdf';")
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'col2': 'item2', 'id': 1,
'col1':
'item1\\:'},
{'col2': '', 'id': 2,
'col1':
@@ -543,7 +543,7 @@ def testExecute(self):
# test insert with null value alternate syntax
query = ("insert test ( col1) values ('asdf');")
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'col2': 'item2', 'id': 1,
'col1':
'item1\\:'},
{'col2': '', 'id': 2,
'col1':
@@ -555,7 +555,7 @@ def testExecute(self):
# test insert with colon inside value
query = ("insert into test set col1='as:df';")
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'col2': 'item2', 'id': 1,
'col1':
'item1\\:'},
{'col2': '', 'id': 2,
'col1':
@@ -567,7 +567,7 @@ def testExecute(self):
# test insert with escaped colon inside value
query = ("insert into test set col1='as\:df';")
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'col2': 'item2', 'id': 1,
'col1':
'item1\\:'},
{'col2': '', 'id': 2,
'col1':
@@ -589,7 +589,7 @@ def testExecute(self):
# test update with null value
query = ("update test set col2='' where id = 3;")
- result = db_conn.Execute(query, writethru)
+ db_conn.Execute(query, writethru)
self.assertEqual(db_conn.data, [{'col2': 'item2', 'id': 1,
'col1':
'item1\\:'},
{'col2': '', 'id': 2,
'col1':