Skip to content

Commit f07ba8f

Browse files
committed
fix: db2-test uses standard pytest invocation with junitxml; fix import order in integration __init__.py
1 parent 2e0f92a commit f07ba8f

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ starrocks-test: engine-starrocks-up
224224
pytest -n auto -m "starrocks" --reruns 3 --junitxml=test-results/junit-starrocks.xml
225225

226226
db2-test: engine-db2-up
227-
# pytest -n auto -m "db2" --reruns 3 --junitxml=test-results/junit-db2.xml
228-
pytest -m "db2" -n 1 --reruns 0 -x -vv -o log_cli=true --log-cli-level=INFO
227+
pytest -n auto -m "db2" --reruns 3 --junitxml=test-results/junit-db2.xml
229228

230229
#################
231230
# Cloud Engines #

‎tests/core/engine_adapter/integration/__init__.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
import os
44
import pathlib
55
import sys
6-
import typing as t
76
import time
7+
import typing as t
88
from contextlib import contextmanager
9+
from dataclasses import dataclass
910

1011
import pandas as pd # noqa: TID253
1112
import pytest
13+
from _pytest.mark import MarkDecorator
14+
from _pytest.mark.structures import ParameterSet
1215
from sqlglot import exp, parse_one
1316
from sqlglot.optimizer.normalize_identifiers import normalize_identifiers
1417

18+
import sqlmesh.core.dialect as d
1519
from sqlmesh import Config, Context, EngineAdapter
1620
from sqlmesh.core.config import load_config_from_paths
1721
from sqlmesh.core.config.connection import AthenaConnectionConfig
1822
from sqlmesh.core.dialect import normalize_model_name
19-
import sqlmesh.core.dialect as d
20-
from sqlmesh.core.engine_adapter import SparkEngineAdapter, TrinoEngineAdapter, AthenaEngineAdapter
23+
from sqlmesh.core.engine_adapter import AthenaEngineAdapter, SparkEngineAdapter, TrinoEngineAdapter
2124
from sqlmesh.core.engine_adapter.shared import DataObject
2225
from sqlmesh.core.model.definition import SqlModel, load_sql_based_model
2326
from sqlmesh.utils import random_id
2427
from sqlmesh.utils.date import to_ds
2528
from sqlmesh.utils.pydantic import PydanticModel
2629
from tests.utils.pandas import compare_dataframes
27-
from dataclasses import dataclass
28-
from _pytest.mark import MarkDecorator
29-
from _pytest.mark.structures import ParameterSet
3030

3131
if t.TYPE_CHECKING:
3232
from sqlmesh.core._typing import TableName, SchemaName

0 commit comments

Comments
 (0)