From 301713b6df136859961f4c1d968c70c4e05260d7 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 16 Dec 2024 07:10:03 +0100 Subject: [PATCH] Remove kafka validation test for exception raising --- python/tests/test_kafka_topic.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/python/tests/test_kafka_topic.py b/python/tests/test_kafka_topic.py index fa91388a9..89718d556 100644 --- a/python/tests/test_kafka_topic.py +++ b/python/tests/test_kafka_topic.py @@ -160,23 +160,6 @@ def test_validate_topic_config_existing_with_name_only(self, backend_fixtures): assert num_repl is None assert num_part is None - def test_validate_topic_config_existing_with_name_and_config( - self, backend_fixtures - ): - # Arrange - json = backend_fixtures["kafka_topic"]["get_existing_with_name_and_config"][ - "response" - ]["kafka_topic_dto"] - - # Act - with pytest.raises(ValueError) as e_info: - num_repl, num_part = kafka_topic.KafkaTopic._validate_topic_config( - json["name"], json["num_replicas"], json["num_partitions"] - ) - - # Assert - assert "Number of replicas or partitions cannot be changed" in str(e_info.value) - def test_validate_topic_config_none(self, backend_fixtures): # Arrange json = backend_fixtures["kafka_topic"]["get_none"]["response"][