mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_external_dbsource_mysql: Migration to 16.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||||
{
|
{
|
||||||
"name": "External Database Source - MySQL",
|
"name": "External Database Source - MySQL",
|
||||||
"version": "15.0.1.0.0",
|
"version": "16.0.1.0.0",
|
||||||
"category": "Tools",
|
"category": "Tools",
|
||||||
"author": "Daniel Reis, LasLabs, Odoo Community Association (OCA)",
|
"author": "Daniel Reis, LasLabs, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/server-backend",
|
"website": "https://github.com/OCA/server-backend",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Copyright 2016 LasLabs Inc.
|
# Copyright 2016 LasLabs Inc.
|
||||||
|
|
||||||
import mock
|
from unittest import mock
|
||||||
|
|
||||||
from odoo.tests import common
|
from odoo.tests import common
|
||||||
|
|
||||||
@@ -10,9 +10,10 @@ ADAPTER = (
|
|||||||
|
|
||||||
|
|
||||||
class TestBaseExternalDbsource(common.TransactionCase):
|
class TestBaseExternalDbsource(common.TransactionCase):
|
||||||
def setUp(self):
|
@classmethod
|
||||||
super().setUp()
|
def setUpClass(cls):
|
||||||
self.dbsource = self.env.ref("base_external_dbsource_mysql.demo_mysql")
|
super().setUpClass()
|
||||||
|
cls.dbsource = cls.env.ref("base_external_dbsource_mysql.demo_mysql")
|
||||||
|
|
||||||
def test_connection_close_mysql(self):
|
def test_connection_close_mysql(self):
|
||||||
"""It should close the connection"""
|
"""It should close the connection"""
|
||||||
|
|||||||
Reference in New Issue
Block a user