Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions airbyte_cdk/test/standard_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@ class TestSuiteSourcePokeAPI(standard_tests.DeclarativeSourceTestSuite):
- `SourceTestSuiteBase`: A test suite for sources.
- `DestinationTestSuiteBase`: A test suite for destinations.

`SourceTestSuiteBase.test_discover` checks the discovered catalog. Some of these checks are not
enforced yet: their problems are reported as a `DiscoveredCatalogWarning` and do not fail the
test. To make them fail, turn the warning into an error:

```bash
pytest -W error::airbyte_cdk.test.standard_tests.DiscoveredCatalogWarning
airbyte-cdk connector test --pytest-arg=-Werror::airbyte_cdk.test.standard_tests.DiscoveredCatalogWarning
```

'''

from airbyte_cdk.test.models.scenario import ConnectorTestScenario
from airbyte_cdk.test.standard_tests._catalog_checks import DiscoveredCatalogWarning
from airbyte_cdk.test.standard_tests.connector_base import ConnectorTestSuiteBase
from airbyte_cdk.test.standard_tests.declarative_sources import (
DeclarativeSourceTestSuite,
Expand All @@ -40,5 +50,6 @@ class TestSuiteSourcePokeAPI(standard_tests.DeclarativeSourceTestSuite):
"ConnectorTestSuiteBase",
"DeclarativeSourceTestSuite",
"DestinationTestSuiteBase",
"DiscoveredCatalogWarning",
"SourceTestSuiteBase",
]
Loading
Loading