[IMP] base_external_dbsource_mysql: Don't depend on SQLite

The amount of shared code is so insignificant, that it doesn't worth to depend on
base_external_dbsource_sqlite.

[UPD] Update base_external_dbsource_mysql.pot

[ADD] icon.png
This commit is contained in:
Pedro M. Baeza
2020-08-07 17:05:53 +02:00
committed by Víctor Martínez
parent 939c37abee
commit 14df31c0ec
8 changed files with 49 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ class TestBaseExternalDbsource(common.TransactionCase):
def test_connection_open_mysql(self):
""" It should call SQLAlchemy open """
with mock.patch.object(
self.dbsource, '_connection_open_sqlalchemy'
self.dbsource, 'connection_open_mysql'
) as parent_method:
self.dbsource.connection_open_mysql()
parent_method.assert_called_once_with()
@@ -35,7 +35,7 @@ class TestBaseExternalDbsource(common.TransactionCase):
""" It should pass args to SQLAlchemy execute """
expect = 'sqlquery', 'sqlparams', 'metadata'
with mock.patch.object(
self.dbsource, '_execute_sqlalchemy'
self.dbsource, 'execute_mysql'
) as parent_method:
self.dbsource.execute_mysql(*expect)
parent_method.assert_called_once_with(*expect)