File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
airbyte_cdk/test/standard_tests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ def create_connector_test_suite(
47
47
)
48
48
metadata_dict : dict [str , Any ] = yaml .safe_load (metadata_yaml_path .read_text ())
49
49
metadata_tags = metadata_dict ["data" ].get ("tags" , [])
50
- language_tag = next (( tag for tag in metadata_tags if tag .startswith ("language:" )), None )
51
- if not language_tag :
50
+ language_tags : list [ str ] = [ tag for tag in metadata_tags if tag .startswith ("language:" )]
51
+ if not language_tags :
52
52
raise ValueError (
53
53
f"Metadata YAML file '{ metadata_yaml_path } ' does not contain a 'language' tag. "
54
54
"Please ensure the metadata file is correctly configured."
55
55
f"Found tags: { ', ' .join (metadata_tags )} "
56
56
)
57
- language = language_tag .split (":" , 1 )[1 ]
57
+ language = language_tags [ 0 ] .split (":" )[1 ]
58
58
59
59
if language == "java" :
60
60
test_suite_class = DockerConnectorTestSuite
@@ -65,7 +65,7 @@ def create_connector_test_suite(
65
65
elif language == "python" and connector_name .startswith ("destination-" ):
66
66
test_suite_class = DestinationTestSuiteBase
67
67
else :
68
- raise ValueError ("Unsupported language for connector '{connector_name}': {language}" )
68
+ raise ValueError (f "Unsupported language for connector '{ connector_name } ': { language } " )
69
69
70
70
subclass_overrides : dict [str , Any ] = {
71
71
"get_connector_root_dir" : classmethod (lambda cls : connector_directory ),
You can’t perform that action at this time.
0 commit comments