[MIG] base_external_dbsource_mysql: Migration to 16.0

This commit is contained in:
David Alonso // Solvos
2023-08-28 18:39:47 +02:00
parent 214fc72f8d
commit 33de09e95b
2 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
# Copyright 2016 LasLabs Inc.
import mock
from unittest import mock
from odoo.tests import common
@@ -10,9 +10,10 @@ ADAPTER = (
class TestBaseExternalDbsource(common.TransactionCase):
def setUp(self):
super().setUp()
self.dbsource = self.env.ref("base_external_dbsource_mysql.demo_mysql")
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.dbsource = cls.env.ref("base_external_dbsource_mysql.demo_mysql")
def test_connection_close_mysql(self):
"""It should close the connection"""