Skip to content

Commit e3aa52e

Browse files
authored
apply aj suggestion
1 parent f227297 commit e3aa52e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

airbyte_cdk/cli/airbyte_cdk/_image.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ def image_test( # "image test" command
131131
connector_name, connector_directory = resolve_connector_name_and_directory(connector)
132132

133133
# Select only tests with the 'image_tests' mark
134-
pytest_args = ["-m", "image_tests and not requires_creds" if no_creds else "image_tests"]
134+
pytest_filter = "image_tests"
135+
if no_creds:
136+
pytest_filter += " and not requires_creds"
137+
138+
pytest_args = ["-m", pytest_filter]
135139
if not image:
136140
metadata_file_path: Path = connector_directory / "metadata.yaml"
137141
try:

0 commit comments

Comments
 (0)