mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Extend test coverage
[ADD] icon.png [UPD] README.rst
This commit is contained in:
committed by
David Alonso // Solvos
parent
753d7d68c8
commit
33e9022cf5
BIN
base_external_dbsource_sqlite/static/description/icon.png
Normal file
BIN
base_external_dbsource_sqlite/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
@@ -3,7 +3,7 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||||
<title>External Database Source - SQLite</title>
|
<title>External Database Source - SQLite</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
|
|||||||
@@ -39,3 +39,12 @@ class TestBaseExternalDbsource(common.TransactionCase):
|
|||||||
) as parent_method:
|
) as parent_method:
|
||||||
self.dbsource.execute_sqlite(*expect)
|
self.dbsource.execute_sqlite(*expect)
|
||||||
parent_method.assert_called_once_with(*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