Skip to content

Commit 02875bc

Browse files
committed
Updated trivup to 0.12.7
1 parent c7ca2f8 commit 02875bc

8 files changed

+10
-15
lines changed

requirements/requirements-tests-install.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
-r requirements-schemaregistry.txt
33
-r requirements-avro.txt
44
-r requirements-protobuf.txt
5-
-r requirements-json.txt
5+
-r requirements-json.txt
6+
tests/trivup/trivup-0.12.7.tar.gz

requirements/requirements-tests.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ urllib3 >= 2.0.0,<3; python_version > "3.7"
44
flake8
55
pytest
66
pytest-timeout
7-
requests-mock
8-
trivup>=0.8.3
7+
requests-mock

tests/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ A python3 env suitable for running tests:
1818

1919
$ python3 -m venv venv_test
2020
$ source venv_test/bin/activate
21-
$ python3 -m pip install .[tests]
21+
$ python3 -m pip install -r requirements/requirements-tests-install.txt
22+
$ python3 -m pip install .
2223

2324
When you're finished with it:
2425

tests/integration/conftest.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,20 @@ def _broker_conf():
3434
return broker_conf
3535

3636

37-
def _broker_version():
38-
return 'trunk@f6c9feea76d01a46319b0ca602d70aa855057b07' if TestUtils.use_group_protocol_consumer() else '3.8.0'
39-
40-
4137
def create_trivup_cluster(conf={}):
4238
trivup_fixture_conf = {'with_sr': True,
4339
'debug': True,
4440
'cp_version': '7.6.0',
4541
'kraft': TestUtils.use_kraft(),
46-
'version': _broker_version(),
42+
'version': '3.8.0',
4743
'broker_conf': _broker_conf()}
4844
trivup_fixture_conf.update(conf)
4945
return TrivupFixture(trivup_fixture_conf)
5046

5147

5248
def create_sasl_cluster(conf={}):
5349
trivup_fixture_conf = {'with_sr': False,
54-
'version': _broker_version(),
50+
'version': '3.8.0',
5551
'sasl_mechanism': "PLAIN",
5652
'kraft': TestUtils.use_kraft(),
5753
'sasl_users': 'sasl_user=sasl_user',

tests/integration/consumer/test_consumer_topicpartition_metadata.py

-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# See the License for the specific language governing permissions and
1616
# limit
1717

18-
import time
1918
from confluent_kafka import TopicPartition
2019

2120

@@ -35,8 +34,6 @@ def test_consumer_topicpartition_metadata(kafka_cluster):
3534
consumer_conf = {'group.id': 'pytest'}
3635

3736
c = kafka_cluster.consumer(consumer_conf)
38-
c.subscribe([topic])
39-
time.sleep(5)
4037

4138
# Commit without any metadata.
4239
metadata = None

tests/trivup/trivup-0.12.6.tar.gz

-32.1 KB
Binary file not shown.

tests/trivup/trivup-0.12.7.tar.gz

32.9 KB
Binary file not shown.

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ passenv =
77
*
88
commands =
99
# Install main package and all sub-packages
10-
pip install .[tests]
10+
pip install -r requirements/requirements-tests-install.txt
11+
pip install .
1112
# Early verification that module is loadable
1213
python -c 'import confluent_kafka ; print(confluent_kafka.version())'
1314
# Run tests (large timeout to allow docker image downloads)
@@ -25,6 +26,6 @@ testpaths = tests
2526
norecursedirs = tests/integration/*/java
2627

2728
[flake8]
28-
exclude = venv*,.venv*,env,.env,.tox,.toxenv,.git,build,docs,tools,tmp-build,*_pb2.py,tmp-KafkaCluster/*
29+
exclude = venv*,.venv*,env,.env,.tox,.toxenv,.git,build,docs,tools,tmp-build,*_pb2.py,*tmp-KafkaCluster/*
2930
max-line-length = 119
3031
accept-encodings = utf-8

0 commit comments

Comments
 (0)