Skip to content

Commit c35e613

Browse files
committed
improve readability of calls
1 parent a610fa9 commit c35e613

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

airbyte_cdk/test/standard_tests/connector_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,16 @@ def test_docker_image_build_and_spec(
202202
tag=tag,
203203
no_verify=False,
204204
)
205-
run_docker_command(
205+
_ = run_docker_command(
206206
[
207207
"docker",
208208
"run",
209209
"--rm",
210210
f"{metadata.data.dockerRepository}:{tag}",
211211
"spec",
212212
],
213+
check=True, # Raise an error if the command fails
214+
capture_output=False,
213215
)
214216

215217
@pytest.mark.skipif(
@@ -241,7 +243,7 @@ def test_docker_image_build_and_check(
241243
)
242244
container_config_path = "/secrets/config.json"
243245
with scenario.with_temp_config_file() as temp_config_file:
244-
run_docker_command(
246+
_ = run_docker_command(
245247
[
246248
"docker",
247249
"run",
@@ -252,4 +254,6 @@ def test_docker_image_build_and_check(
252254
"check",
253255
f"--config={container_config_path}",
254256
],
257+
check=True, # Raise an error if the command fails
258+
capture_output=False,
255259
)

0 commit comments

Comments
 (0)