Skip to content

Commit 6612bfb

Browse files
dpkp88manpreet
authored andcommitted
Fix skipped integration tests if KAFKA_VERSION unset (dpkp#1453)
1 parent 3d631bb commit 6612bfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_producer_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from test.fixtures import ZookeeperFixture, KafkaFixture
2020
from test.testutil import KafkaIntegrationTestCase, kafka_versions, current_offset
2121

22+
2223
# TODO: This duplicates a TestKafkaProducerIntegration method temporarily
2324
# while the migration to pytest is in progress
2425
def assert_produce_request(client, topic, messages, initial_offset, message_ct,
@@ -34,13 +35,15 @@ def assert_produce_request(client, topic, messages, initial_offset, message_ct,
3435

3536
assert current_offset(client, topic, partition) == initial_offset + message_ct
3637

38+
3739
def assert_produce_response(resp, initial_offset):
3840
"""Verify that a produce response is well-formed
3941
"""
4042
assert len(resp) == 1
4143
assert resp[0].error == 0
4244
assert resp[0].offset == initial_offset
4345

46+
4447
@pytest.mark.skipif(not version(), reason="No KAFKA_VERSION set")
4548
def test_produce_many_simple(simple_client, topic):
4649
"""Test multiple produces using the SimpleClient

0 commit comments

Comments
 (0)