Skip to content

Commit a0f46d9

Browse files
authored
Update airbyte_cdk/cli/airbyte_cdk/_connector.py
1 parent 781a912 commit a0f46d9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

airbyte_cdk/cli/airbyte_cdk/_connector.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,10 @@ def test(
163163

164164
pytest_args.append(str(test_file_path))
165165

166-
if connector_directory:
167-
build_dir = connector_directory / "build" / "test-results"
168-
build_dir.mkdir(parents=True, exist_ok=True)
169-
junit_xml_path = build_dir / "standard-tests-junit.xml"
170-
pytest_args.extend(["--junitxml", str(junit_xml_path)])
166+
build_dir = connector_directory / "build" / "test-results"
167+
build_dir.mkdir(parents=True, exist_ok=True)
168+
junit_xml_path = build_dir / "standard-tests-junit.xml"
169+
pytest_args.extend(["--junitxml", str(junit_xml_path)])
171170

172171
click.echo(f"Running tests from connector directory: {connector_directory}...")
173172
click.echo(f"Test file: {test_file_path}")

0 commit comments

Comments
 (0)