From ba00f071d75b4b90d5505fcefe2cc01157bd67c1 Mon Sep 17 00:00:00 2001 From: selfeer Date: Tue, 27 Feb 2024 18:55:32 +0400 Subject: [PATCH] remove redundant test cases --- .../tests/integration/tests/types.py | 92 ------------------- 1 file changed, 92 deletions(-) diff --git a/sink-connector-lightweight/tests/integration/tests/types.py b/sink-connector-lightweight/tests/integration/tests/types.py index 10c054ac2..d6b21de6f 100644 --- a/sink-connector-lightweight/tests/integration/tests/types.py +++ b/sink-connector-lightweight/tests/integration/tests/types.py @@ -78,50 +78,14 @@ def decimal(self, mysql_type, ch_type, values, ch_values, nullable): ) -@TestOutline(Feature) -@Examples( - "mysql_type ch_type values ch_values nullable", - [ - # ("DOUBLE", "Float64", ["999.00009"], ["999.00009"], False), - # ("DOUBLE", "Float64", ["NULL"], ["\\N"], True), - ("DOUBLE", "Decimal128(20)", ["999.00009"], ["999.00009"], False), - ("DOUBLE", "Decimal128(20)", ["1.7091"], ["1.7091"], False), - ], -) -@Requirements( - RQ_SRS_030_ClickHouse_MySQLToClickHouseReplication_DataTypes_Double("1.0") -) -@Requirements() -def double(self, mysql_type, ch_type, values, ch_values, nullable): - """Check replication of MySQl 'DOUBLE' data type.""" - for clickhouse_table_engine in self.context.clickhouse_table_engines: - with Example({clickhouse_table_engine}, flags=TE): - check_datatype_replication( - mysql_type=mysql_type, - ch_type=ch_type, - values=values, - ch_values=ch_values, - nullable=nullable, - clickhouse_table_engine=clickhouse_table_engine, - ) - - @TestOutline(Feature) @Examples( "mysql_type ch_type values ch_values nullable", [ ("DATE", "Date32", ["'2012-12-12'"], ['"2012-12-12"'], False), - ( - "DATETIME", - "DateTime64", - ["'2018-09-08 17:51:04'"], - ['"2018-09-08 17:51:04.000"'], - False, - ), ("TIME", "String", ["'17:51:04.777'"], ['"17:51:05.000000"'], False), ("TIME(6)", "String", ["'17:51:04.777'"], ['"17:51:04.777000"'], False), ("DATE", "Date32", ["NULL"], ["\\N"], True), - ("DATETIME", "DateTime64", ["NULL"], ["\\N"], True), ("TIME", "String", ["NULL"], ["\\N"], True), ("TIME(6)", "String", ["NULL"], ["\\N"], True), ], @@ -210,33 +174,6 @@ def integer_types(self, mysql_type, ch_type, values, ch_values, nullable): ) -@TestOutline(Feature) -@Examples( - "mysql_type ch_type values ch_values nullable", - [ - ( - "BIGINT UNSIGNED", - "UInt64", - ["0", "18446744073709551615"], - ["0", "18446744073709551615"], - False, - ), - ], -) -def bigint(self, mysql_type, ch_type, values, ch_values, nullable): - """Check replication of MySQl 'BIGINT UNSIGNED' data type.""" - for clickhouse_table_engine in self.context.clickhouse_table_engines: - with Example({clickhouse_table_engine}, flags=TE): - check_datatype_replication( - mysql_type=mysql_type, - ch_type=ch_type, - values=values, - ch_values=ch_values, - nullable=nullable, - clickhouse_table_engine=clickhouse_table_engine, - ) - - @TestOutline(Feature) @Examples( "mysql_type ch_type values ch_values nullable", @@ -355,35 +292,6 @@ def enum(self, mysql_type, ch_type, values, ch_values, nullable): ) -@TestOutline(Feature) -@Examples( - "mysql_type ch_type values ch_values nullable", - [ - ( - "JSON", - "String", - ['\'{\\"key1\\": \\"value1\\", \\"key2\\": \\"value2\\"}\''], - ['{""key1"": ""value1"", ""key2"": ""value2""}'], - False, - ), - ("JSON", "String", ["NULL"], ["\\N"], True), - ], -) -@Requirements(RQ_SRS_030_ClickHouse_MySQLToClickHouseReplication_DataTypes_JSON("1.0")) -def json(self, mysql_type, ch_type, values, ch_values, nullable): - """Check replication of MySQl 'JSON' data types.""" - for clickhouse_table_engine in self.context.clickhouse_table_engines: - with Example({clickhouse_table_engine}, flags=TE): - check_datatype_replication( - mysql_type=mysql_type, - ch_type=ch_type, - values=values, - ch_values=ch_values, - nullable=nullable, - clickhouse_table_engine=clickhouse_table_engine, - ) - - @TestModule @Requirements( RQ_SRS_030_ClickHouse_MySQLToClickHouseReplication_DataTypes_Nullable("1.0")