Родитель
87d83a1ae3
Коммит
58edc38f45
|
@ -34,7 +34,7 @@ except ImportError:
|
|||
pymssql = None
|
||||
|
||||
|
||||
@unittest.skipIf(PY38, "Mssql package not avaible when Python >= 3.8.")
|
||||
@unittest.skipIf(PY38, "Mssql package not available when Python >= 3.8.")
|
||||
@unittest.skipIf(pymssql is None, 'pymssql package not present')
|
||||
class TestMsSqlToHiveTransfer(unittest.TestCase):
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ SCHEMA_JSON = [
|
|||
]
|
||||
|
||||
|
||||
@unittest.skipIf(PY38, "Mssql package not avaible when Python >= 3.8.")
|
||||
@unittest.skipIf(PY38, "Mssql package not available when Python >= 3.8.")
|
||||
class TestMsSqlToGoogleCloudStorageOperator(unittest.TestCase):
|
||||
|
||||
def test_init(self):
|
||||
|
|
|
@ -33,7 +33,7 @@ PYMSSQL_CONN = Connection(conn_id='test-pymssql', conn_type='anything', )
|
|||
|
||||
|
||||
class TestMsSqlOperator:
|
||||
@unittest.skipIf(PY38, "Mssql package not avaible when Python >= 3.8.")
|
||||
@unittest.skipIf(PY38, "Mssql package not available when Python >= 3.8.")
|
||||
@mock.patch('airflow.hooks.base_hook.BaseHook.get_connection')
|
||||
def test_get_hook(self, get_connection):
|
||||
"""
|
||||
|
|
|
@ -51,7 +51,7 @@ class TestMovingCoreToContrib(TestCase):
|
|||
py_38 = sys.version_info >= (3, 8)
|
||||
if py_38:
|
||||
if "mssql" in path_a or "mssql" in path_b:
|
||||
raise self.skipTest("Mssql package not avaible when Python >= 3.8.")
|
||||
raise self.skipTest("Mssql package not available when Python >= 3.8.")
|
||||
|
||||
@staticmethod
|
||||
def get_class_from_path(path_to_class, parent=False):
|
||||
|
|
Загрузка…
Ссылка в новой задаче