Extend test coverage

[ADD] icon.png

[UPD] README.rst
This commit is contained in:
Adrià Gil Sorribes
2018-11-15 10:29:31 +01:00
committed by Andrea Cattalani
parent 726a4cacdf
commit f283386ee9
3 changed files with 10 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<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>
<style type="text/css">

View File

@@ -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)