Skip to content

Commit 15fdf5a

Browse files
fix(cli): make test imports lazy so secrets command works without [dev] extra (#900)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 57c70ba commit 15fdf5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

airbyte_cdk/cli/airbyte_cdk/_connector.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545

4646
import rich_click as click
4747

48-
from airbyte_cdk.test.standard_tests.util import create_connector_test_suite
49-
5048
# from airbyte_cdk.test.standard_tests import pytest_hooks
5149
from airbyte_cdk.utils.connector_paths import (
5250
find_connector_root_from_name,
@@ -174,6 +172,9 @@ def run_connector_tests(
174172
"pytest is not installed. Please install pytest to run the connector tests."
175173
)
176174

175+
# Lazy import: this module requires pytest, which is only available via the [dev] extra.
176+
from airbyte_cdk.test.standard_tests.util import create_connector_test_suite
177+
177178
connector_test_suite = create_connector_test_suite(
178179
connector_name=connector_name if not connector_directory else None,
179180
connector_directory=connector_directory,

0 commit comments

Comments
 (0)