Skip to content

Commit

Permalink
testcontainers for 3.8 dont work
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbrull committed Sep 16, 2024
1 parent 37b9413 commit fe13764
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"""
OpenMetadata high-level API Workflow test
"""
import sys

import pytest
from sqlalchemy.engine import Engine

from metadata.generated.schema.api.automations.createWorkflow import (
Expand Down Expand Up @@ -39,6 +42,9 @@
from metadata.generated.schema.entity.services.serviceType import ServiceType
from metadata.ingestion.source.connections import get_connection, get_test_connection_fn

if sys.version_info < (3, 9):
pytest.skip("requires python 3.9+", allow_module_level=True)


def test_connection_workflow(metadata, mysql_container):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"""
MySQL connection test
"""
import sys

import pytest
from sqlalchemy.engine import Engine

from metadata.generated.schema.entity.services.connections.database.common.basicAuth import (
Expand All @@ -21,6 +24,9 @@
)
from metadata.ingestion.source.connections import get_connection, get_test_connection_fn

if sys.version_info < (3, 9):
pytest.skip("requires python 3.9+", allow_module_level=True)


def test_test_connection(metadata, mysql_container):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"""
Test how we create and update status in Ingestion Pipelines
"""
import sys

import pytest

from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
Expand All @@ -26,6 +28,9 @@
)
from metadata.ingestion.api.status import TruncatedStackTraceError

if sys.version_info < (3, 9):
pytest.skip("requires python 3.9+", allow_module_level=True)


def test_create_ingestion_pipeline(workflow) -> None:
"""We can create an ingestion pipeline"""
Expand Down
4 changes: 4 additions & 0 deletions ingestion/tests/integration/workflow/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import importlib
import pathlib
import sys
import uuid

import pytest
Expand All @@ -26,6 +27,9 @@
)
from metadata.workflow.metadata import MetadataWorkflow

if sys.version_info < (3, 9):
pytest.skip("requires python 3.9+", allow_module_level=True)


def delete_service(metadata):
service_id = str(
Expand Down

0 comments on commit fe13764

Please sign in to comment.