Skip to content

Commit

Permalink
Remove kafka validation test for exception raising
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Dec 18, 2024
1 parent 1d62fcc commit 8db95a4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions python/tests/test_kafka_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"][
Expand Down

0 comments on commit 8db95a4

Please sign in to comment.