airbyte-cdk 6.45.1.post46.dev14423672753__py3-none-any.whl → 6.45.1.post47.dev14456468218__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_cdk/connector_builder/connector_builder_handler.py +3 -12
- airbyte_cdk/connector_builder/test_reader/reader.py +0 -2
- airbyte_cdk/models/__init__.py +1 -0
- airbyte_cdk/models/airbyte_protocol.py +1 -3
- airbyte_cdk/sources/concurrent_source/concurrent_read_processor.py +1 -1
- airbyte_cdk/sources/declarative/concurrent_declarative_source.py +8 -0
- airbyte_cdk/sources/declarative/declarative_component_schema.yaml +36 -0
- airbyte_cdk/sources/declarative/extractors/record_selector.py +6 -1
- airbyte_cdk/sources/declarative/models/declarative_component_schema.py +31 -0
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +39 -1
- airbyte_cdk/sources/declarative/retrievers/file_uploader.py +89 -0
- airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py +9 -4
- airbyte_cdk/sources/file_based/file_based_stream_reader.py +38 -16
- airbyte_cdk/sources/file_based/file_record_data.py +22 -0
- airbyte_cdk/sources/file_based/file_types/file_transfer.py +8 -15
- airbyte_cdk/sources/file_based/schema_helpers.py +10 -1
- airbyte_cdk/sources/file_based/stream/concurrent/adapters.py +3 -12
- airbyte_cdk/sources/file_based/stream/default_file_based_stream.py +15 -38
- airbyte_cdk/sources/file_based/stream/permissions_file_based_stream.py +1 -3
- airbyte_cdk/sources/streams/concurrent/default_stream.py +3 -0
- airbyte_cdk/sources/types.py +11 -2
- airbyte_cdk/sources/utils/files_directory.py +15 -0
- airbyte_cdk/sources/utils/record_helper.py +8 -8
- airbyte_cdk/test/entrypoint_wrapper.py +0 -4
- airbyte_cdk/test/mock_http/response_builder.py +8 -0
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/METADATA +2 -3
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/RECORD +31 -42
- airbyte_cdk/models/file_transfer_record_message.py +0 -13
- airbyte_cdk/test/declarative/__init__.py +0 -6
- airbyte_cdk/test/declarative/models/__init__.py +0 -7
- airbyte_cdk/test/declarative/models/scenario.py +0 -74
- airbyte_cdk/test/declarative/test_suites/__init__.py +0 -25
- airbyte_cdk/test/declarative/test_suites/connector_base.py +0 -223
- airbyte_cdk/test/declarative/test_suites/declarative_sources.py +0 -74
- airbyte_cdk/test/declarative/test_suites/destination_base.py +0 -12
- airbyte_cdk/test/declarative/test_suites/source_base.py +0 -128
- airbyte_cdk/test/declarative/utils/__init__.py +0 -0
- airbyte_cdk/test/declarative/utils/job_runner.py +0 -150
- airbyte_cdk/test/fixtures/__init__.py +0 -0
- airbyte_cdk/test/fixtures/auto.py +0 -14
- airbyte_cdk/test/pytest_config/plugin.py +0 -46
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/entry_points.txt +0 -0
@@ -1,14 +0,0 @@
|
|
1
|
-
"""Auto-use fixtures for pytest.
|
2
|
-
|
3
|
-
WARNING: Importing this module will automatically apply these fixtures. If you want to selectively
|
4
|
-
enable fixtures in a different context, you can import directly from the `fixtures.general` module.
|
5
|
-
|
6
|
-
|
7
|
-
Usage:
|
8
|
-
|
9
|
-
```python
|
10
|
-
from airbyte_cdk.test.fixtures import auto
|
11
|
-
# OR
|
12
|
-
from airbyte_cdk.test.fixtures.auto import *
|
13
|
-
```
|
14
|
-
"""
|
@@ -1,46 +0,0 @@
|
|
1
|
-
"""Global pytest configuration for the Airbyte CDK tests."""
|
2
|
-
|
3
|
-
from pathlib import Path
|
4
|
-
from typing import cast
|
5
|
-
|
6
|
-
import pytest
|
7
|
-
|
8
|
-
|
9
|
-
def pytest_collect_file(parent: pytest.Module | None, path: Path) -> pytest.Module | None:
|
10
|
-
"""Collect test files based on their names."""
|
11
|
-
if path.name == "test_connector.py":
|
12
|
-
return cast(pytest.Module, pytest.Module.from_parent(parent, path=path))
|
13
|
-
|
14
|
-
return None
|
15
|
-
|
16
|
-
|
17
|
-
def pytest_configure(config: pytest.Config) -> None:
|
18
|
-
config.addinivalue_line("markers", "connector: mark test as a connector test")
|
19
|
-
|
20
|
-
|
21
|
-
def pytest_addoption(parser: pytest.Parser) -> None:
|
22
|
-
parser.addoption(
|
23
|
-
"--run-connector",
|
24
|
-
action="store_true",
|
25
|
-
default=False,
|
26
|
-
help="run connector tests",
|
27
|
-
)
|
28
|
-
|
29
|
-
|
30
|
-
def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:
|
31
|
-
if config.getoption("--run-connector"):
|
32
|
-
return
|
33
|
-
skip_connector = pytest.mark.skip(reason="need --run-connector option to run")
|
34
|
-
for item in items:
|
35
|
-
if "connector" in item.keywords:
|
36
|
-
item.add_marker(skip_connector)
|
37
|
-
|
38
|
-
|
39
|
-
def pytest_runtest_setup(item: pytest.Item) -> None:
|
40
|
-
# This hook is called before each test function is executed
|
41
|
-
print(f"Setting up test: {item.name}")
|
42
|
-
|
43
|
-
|
44
|
-
def pytest_runtest_teardown(item: pytest.Item, nextitem: pytest.Item | None) -> None:
|
45
|
-
# This hook is called after each test function is executed
|
46
|
-
print(f"Tearing down test: {item.name}")
|
File without changes
|
File without changes
|
File without changes
|