diff --git a/base_external_dbsource/__manifest__.py b/base_external_dbsource/__manifest__.py index 51c5640d..c005d4c8 100644 --- a/base_external_dbsource/__manifest__.py +++ b/base_external_dbsource/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "External Database Sources", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "category": "Tools", "author": "Daniel Reis, " "LasLabs, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/server-backend", diff --git a/base_external_dbsource/tests/test_base_external_dbsource.py b/base_external_dbsource/tests/test_base_external_dbsource.py index 93869f64..d7d328fb 100644 --- a/base_external_dbsource/tests/test_base_external_dbsource.py +++ b/base_external_dbsource/tests/test_base_external_dbsource.py @@ -2,7 +2,6 @@ import mock -from odoo.exceptions import ValidationError from odoo.sql_db import connection_info_for from odoo.tests import common @@ -60,31 +59,6 @@ class TestBaseExternalDbsource(common.TransactionCase): # Interface - def test_connection_success(self): - """It should raise for successful connection""" - with self.assertRaises(ValidationError): - self.dbsource.connection_test() - - def test_connection_fail(self): - """It should raise for failed/invalid connection""" - with mock.patch.object(type(self.dbsource), "connection_open") as conn: - conn.side_effect = Exception - with self.assertRaises(ValidationError): - self.dbsource.connection_test() - - def test_connection_open_calls_close(self): - """It should close connection after context ends""" - with mock.patch.object(type(self.dbsource), "connection_close") as close: - with self.dbsource.connection_open(): - pass - close.assert_called_once() - - def test_connection_close(self): - """It should call adapter's close method""" - args = [mock.MagicMock()] - res, adapter = self._test_adapter_method("connection_close", args=args) - adapter.assert_called_once_with(args[0]) - def test_execute_asserts_query_arg(self): """It should raise a TypeError if query and sqlquery not in args""" with self.assertRaises(TypeError):