|
18 | 18 | ConnectorSpecification, |
19 | 19 | Status, |
20 | 20 | ) |
21 | | -from airbyte_cdk.test import entrypoint_wrapper |
| 21 | +from airbyte_cdk.test.entrypoint_wrapper import EntrypointOutput, _run_command |
22 | 22 | from airbyte_cdk.test.standard_tests.models import ( |
23 | 23 | ConnectorTestScenario, |
24 | 24 | ) |
25 | 25 |
|
26 | 26 |
|
27 | 27 | def _errors_to_str( |
28 | | - entrypoint_output: entrypoint_wrapper.EntrypointOutput, |
| 28 | + entrypoint_output: EntrypointOutput, |
29 | 29 | ) -> str: |
30 | 30 | """Convert errors from entrypoint output to a string.""" |
31 | 31 | if not entrypoint_output.errors: |
@@ -65,7 +65,7 @@ def run_test_job( |
65 | 65 | *, |
66 | 66 | test_scenario: ConnectorTestScenario | None = None, |
67 | 67 | catalog: ConfiguredAirbyteCatalog | dict[str, Any] | None = None, |
68 | | -) -> entrypoint_wrapper.EntrypointOutput: |
| 68 | +) -> EntrypointOutput: |
69 | 69 | """Run a test scenario from provided CLI args and return the result.""" |
70 | 70 | # Use default (empty) scenario if not provided: |
71 | 71 | test_scenario = test_scenario or ConnectorTestScenario() |
@@ -120,7 +120,7 @@ def run_test_job( |
120 | 120 | # This is a bit of a hack because the source needs the catalog early. |
121 | 121 | # Because it *also* can fail, we have to redundantly wrap it in a try/except block. |
122 | 122 |
|
123 | | - result: entrypoint_wrapper.EntrypointOutput = entrypoint_wrapper._run_command( # noqa: SLF001 # Non-public API |
| 123 | + result: EntrypointOutput = _run_command( # noqa: SLF001 # Non-public API |
124 | 124 | source=connector_obj, # type: ignore [arg-type] |
125 | 125 | args=args, |
126 | 126 | expecting_exception=test_scenario.expect_exception, |
|
0 commit comments