refactor: Remove name filter from list_custom_source_definitions #2540
GitHub Actions / PyTest Results (Full)
failed
Oct 11, 2025 in 0s
1 fail, 16 skipped, 353 pass in 20m 20s
Annotations
Check warning on line 0 in tests.integration_tests.cloud.test_custom_definitions
github-actions / PyTest Results (Full)
test_publish_custom_yaml_source (tests.integration_tests.cloud.test_custom_definitions) failed
build/test-results/test-results.xml [took 1s]
Raw output
TypeError: CloudWorkspace.list_custom_source_definitions() got an unexpected keyword argument 'name'
cloud_workspace = CloudWorkspace(workspace_id='19d7a891-8e0e-40ac-8a8c-5faf8d11e47c', client_id=<SecretString: ****>, client_secret=<SecretString: ****>, api_root='https://api.airbyte.com/v1')
@pytest.mark.requires_creds
def test_publish_custom_yaml_source(
cloud_workspace: CloudWorkspace,
) -> None:
"""Test publishing a custom YAML source definition."""
from airbyte._util import text_util
name = f"test-yaml-source-{text_util.generate_random_suffix()}"
result = cloud_workspace.publish_custom_source_definition(
name=name,
manifest_yaml=TEST_YAML_MANIFEST,
unique=True,
pre_validate=True,
)
assert result.definition_id
assert result.name == name
assert result.manifest is not None
assert result.version is not None
assert result.connector_type == "yaml"
definition_id = result.definition_id
try:
> definitions = cloud_workspace.list_custom_source_definitions(
name=name,
custom_connector_type="yaml",
)
E TypeError: CloudWorkspace.list_custom_source_definitions() got an unexpected keyword argument 'name'
tests/integration_tests/cloud/test_custom_definitions.py:73: TypeError
Loading