Skip to content

Commit eb76821

Browse files
committed
formatting
1 parent d149a69 commit eb76821

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

airbyte_cdk/test/standard_tests/docker_base.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ def is_destination_connector(cls) -> bool:
6666
@classproperty
6767
def acceptance_test_config(cls) -> dict[str, object]:
6868
"""Get the contents of acceptance test config file.
69-
69+
7070
Also perform some basic validation that the file has the expected structure.
7171
"""
7272
acceptance_test_config_path = cls.get_connector_root_dir() / ACCEPTANCE_TEST_CONFIG
7373
if not acceptance_test_config_path.exists():
74-
raise FileNotFoundError(f"Acceptance test config file not found at: {str(acceptance_test_config_path)}")
75-
74+
raise FileNotFoundError(
75+
f"Acceptance test config file not found at: {str(acceptance_test_config_path)}"
76+
)
77+
7678
tests_config = yaml.safe_load(acceptance_test_config_path.read_text())
7779

7880
if "acceptance_tests" not in tests_config:
@@ -130,7 +132,9 @@ def get_scenarios(
130132
if scenario.config_path == existing_scenario.config_path:
131133
# If a scenario with the same config_path already exists, we merge the empty streams.
132134
# scenarios are immutable, so we create a new one.
133-
all_empty_streams = (existing_scenario.empty_streams or []) + (scenario.empty_streams or [])
135+
all_empty_streams = (existing_scenario.empty_streams or []) + (
136+
scenario.empty_streams or []
137+
)
134138
new_scenario = existing_scenario.model_copy(
135139
update={"empty_streams": all_empty_streams}
136140
)
@@ -346,7 +350,9 @@ def test_docker_image_build_and_read(
346350

347351
if scenario.empty_streams:
348352
# If there are empty streams, we remove them from the list of streams to read.
349-
streams_list = list(set(streams_list) - set(stream.name for stream in scenario.empty_streams))
353+
streams_list = list(
354+
set(streams_list) - set(stream.name for stream in scenario.empty_streams)
355+
)
350356

351357
configured_catalog: ConfiguredAirbyteCatalog = ConfiguredAirbyteCatalog(
352358
streams=[

0 commit comments

Comments
 (0)