Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e81f784

Browse files
Style fixes
1 parent dedb02a commit e81f784

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

‎tests/common/__init__.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ def update_conf_group_protocol(conf=None):
6060

6161
@staticmethod
6262
def can_upgrade_group_protocol_to_consumer(conf):
63-
return conf is not None and 'group.id' in conf and 'group.protocol' not in conf and TestUtils.use_group_protocol_consumer()
63+
return (conf is not None and 'group.id' in conf and
64+
'group.protocol' not in conf and TestUtils.use_group_protocol_consumer())
6465

6566
@staticmethod
6667
def remove_forbidden_conf_group_protocol_consumer(conf):
67-
if conf is None or not TestUtils.use_group_protocol_consumer() or conf.get('group.protocol', 'consumer') != 'consumer':
68+
if (conf is None or
69+
not TestUtils.use_group_protocol_consumer() or
70+
conf.get('group.protocol', 'consumer') != 'consumer'):
6871
return
6972
forbidden_conf_properties = ["session.timeout.ms",
7073
"partition.assignment.strategy",

‎tests/integration/cluster_fixture.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def create_topic(self, prefix, conf=None, **create_topic_kwargs):
233233

234234
future_topic.get(name).result()
235235
return name
236-
236+
237237
def delete_topic(self, topic):
238238
"""
239239
Deletes a topic with this cluster.

‎tests/integration/consumer/test_consumer_upgrade_downgrade.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ class Operation(Enum):
7373
REMOVE = 1
7474

7575

76-
def perform_consumer_upgrade_downgrade_test_with_partition_assignment_strategy(kafka_cluster, partition_assignment_strategy):
76+
def perform_consumer_upgrade_downgrade_test_with_partition_assignment_strategy(
77+
kafka_cluster, partition_assignment_strategy):
7778
"""
7879
Test consumer upgrade and downgrade.
7980
"""
8081
topic_name_prefix = f"{topic_prefix}_{partition_assignment_strategy}"
8182
topic = kafka_cluster.create_topic_and_wait_propogation(topic_name_prefix,
82-
{
83-
"num_partitions": number_of_partitions
84-
})
83+
{
84+
"num_partitions": number_of_partitions
85+
})
8586
admin_client = kafka_cluster.admin()
8687

8788
consumer_conf = {'group.id': topic,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /