mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-23 09:22:18 +00:00

* added trino integration test * - removed warnings for classes which are not real tests - removed "helpers" as its being used * use a docker network instead of host * print logs for hive failure * removed superset unit tests * try pinning requests for test * try pinning requests for test * wait for hive to be ready * fix trino fixture * - reduced testcontainers_config.max_tries to 5 - remove intermediate containers * print with logs * disable capture logging * updated db host * removed debug stuff * removed debug stuff * removed version pin for requests * reverted superset * ignore trino integration on python 3.8
29 lines
612 B
Python
29 lines
612 B
Python
import sys
|
|
|
|
import pytest
|
|
|
|
from .integration_base import int_admin_ometa
|
|
|
|
if not sys.version_info >= (3, 9):
|
|
collect_ignore = ["trino"]
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def metadata():
|
|
return int_admin_ometa()
|
|
|
|
|
|
def pytest_pycollect_makeitem(collector, name, obj):
|
|
try:
|
|
if obj.__base__.__name__ in ("BaseModel", "Enum"):
|
|
return []
|
|
except AttributeError:
|
|
pass
|
|
|
|
|
|
@pytest.fixture(scope="session", autouse=sys.version_info >= (3, 9))
|
|
def config_testcontatiners():
|
|
from testcontainers.core.config import testcontainers_config
|
|
|
|
testcontainers_config.max_tries = 10
|