mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Extend test coverage
This commit is contained in:
committed by
Sergio Teruel
parent
14c3ab3766
commit
8f0120e94a
@@ -39,3 +39,12 @@ class TestBaseExternalDbsource(common.TransactionCase):
|
||||
) as parent_method:
|
||||
self.dbsource.execute_sqlite(*expect)
|
||||
parent_method.assert_called_once_with(*expect)
|
||||
|
||||
def test_execute_sqlit_without_sqlparams(self):
|
||||
""" It should pass args to SQLAlchemy execute """
|
||||
expect = 'sqlquery', None, 'metadata'
|
||||
with mock.patch.object(
|
||||
self.dbsource, '_execute_sqlalchemy'
|
||||
) as parent_method:
|
||||
self.dbsource.execute_sqlite(*expect)
|
||||
parent_method.assert_called_once_with(*expect)
|
||||
|
||||
Reference in New Issue
Block a user