File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
airbyte_cdk/test/declarative/test_suites
unit_tests/resources/source_pokeapi_w_components_py/integration_tests Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def create_connector(
3333
3434 manifest_dict = yaml .safe_load (self .manifest_path .read_text ())
3535 if self .components_py_path and self .components_py_path .exists ():
36- os .environ ["AIRBYTE_ALLOW_CUSTOM_CODE " ] = "true"
36+ os .environ ["AIRBYTE_ENABLE_UNSAFE_CODE " ] = "true"
3737 config ["__injected_components_py" ] = self .components_py_path .read_text ()
3838 config ["__injected_components_py_checksums" ] = {
3939 "md5" : md5_checksum (self .components_py_path ),
Original file line number Diff line number Diff line change 11# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
2- import os
32from pathlib import Path
43
5- from typing_extensions import override
6-
7- from airbyte_cdk .sources .declarative .concurrent_declarative_source import (
8- ConcurrentDeclarativeSource ,
9- )
104from airbyte_cdk .test .declarative .test_suites import (
11- ConnectorTestScenario ,
125 DeclarativeSourceTestSuite ,
136 generate_tests ,
147)
@@ -38,22 +31,3 @@ class TestSuiteSourcePokeAPI(DeclarativeSourceTestSuite):
3831 manifest_path = get_resource_path ("manifest.yaml" )
3932 components_py_path = get_resource_path ("components.py" )
4033 acceptance_test_config_path = get_resource_path ("acceptance-test-config.yml" )
41-
42- # @override
43- # @classmethod
44- # def get_scenarios(cls) -> list[ConnectorTestScenario]:
45- # """Define the scenarios for the test suite."""
46- # return [
47- # ConnectorTestScenario(
48- # id="pikachu",
49- # config_dict={"pokemon_name": "pikachu"},
50- # ),
51- # ConnectorTestScenario(
52- # id="bulbasaur",
53- # config_dict={"pokemon_name": "bulbasaur"},
54- # ),
55- # ConnectorTestScenario(
56- # id="charmander",
57- # config_dict={"pokemon_name": "charmander"},
58- # ),
59- # ]
You can’t perform that action at this time.
0 commit comments