Skip to content

Commit 2345164

Browse files
committed
selective import from 'origin/devin/1752808596-manual-tests-static-schema-discover'
2 parents ff14901 + 3798fb4 commit 2345164

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

airbyte_cdk/sources/declarative/manifest_declarative_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@ def _uses_dynamic_schema_loader(self) -> bool:
617617
Returns:
618618
bool: True if any stream uses a DynamicSchemaLoader, False otherwise.
619619
"""
620-
for stream_config in self._stream_configs(self._source_config):
620+
empty_config: Dict[str, Any] = {}
621+
for stream_config in self._stream_configs(self._source_config, empty_config):
621622
schema_loader = stream_config.get("schema_loader", {})
622623
if (
623624
isinstance(schema_loader, dict)

airbyte_cdk/test/standard_tests/connector_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def test_check(
136136
and not result.errors
137137
):
138138
raise AssertionError(f"Expected error in `check` but got success.")
139+
139140
@classmethod
140141
def get_connector_root_dir(cls) -> Path:
141142
"""Get the root directory of the connector."""

airbyte_cdk/test/standard_tests/source_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_fail_read_with_bad_catalog(
159159
# Recreate the scenario with the same config but set the status to "failed".
160160
scenario = ConnectorTestScenario(
161161
config_dict=scenario.get_config_dict(
162-
connector_root=scenario.connector_root,
162+
connector_root=self.get_connector_root_dir(),
163163
empty_if_missing=False,
164164
),
165165
status="failed",

0 commit comments

Comments
 (0)