Skip to content

Commit 3b88490

Browse files
committed
tidy imports
1 parent 3de3edf commit 3b88490

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from scenario import (
2+
AcceptanceTestScenario,
3+
)
4+
5+
__all__ = [
6+
"AcceptanceTestScenario",
7+
]

airbyte_cdk/test/declarative/test_suites/connector_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
import pytest
1111
import yaml
12-
from airbyte_connector_tester.instances import (
13-
AcceptanceTestScenario,
14-
get_acceptance_tests,
15-
)
1612
from airbyte_connector_tester.job_runner import run_test_job
1713
from pydantic import BaseModel
1814

@@ -22,6 +18,9 @@
2218
Type,
2319
)
2420
from airbyte_cdk.test import entrypoint_wrapper
21+
from airbyte_cdk.test.declarative.models import (
22+
AcceptanceTestScenario,
23+
)
2524

2625
ACCEPTANCE_TEST_CONFIG_PATH = Path("acceptance-test-config.yml")
2726

@@ -52,6 +51,7 @@ def new_connector(self, **kwargs: dict[str, Any]) -> Connector:
5251

5352
# Internal Methods - We don't expect subclasses to override these
5453

54+
@classmethod
5555
def _get_acceptance_tests(
5656
category: str,
5757
accept_test_config_path: Path = ACCEPTANCE_TEST_CONFIG_PATH,
@@ -89,7 +89,7 @@ def test_use_plugin_parametrized_test(
8989

9090
@pytest.mark.parametrize(
9191
"instance",
92-
get_acceptance_tests("connection"),
92+
self._get_acceptance_tests("connection"),
9393
ids=lambda instance: instance.instance_name,
9494
)
9595
def test_check(

0 commit comments

Comments
 (0)