kafka-python icon indicating copy to clipboard operation
kafka-python copied to clipboard

kafka-python should package test module / fixtures

Open paulcavallaro opened this issue 9 years ago • 4 comments

The package should export the test module so that downstream consumers can use the same testing facilities that kafka-python uses.

paulcavallaro avatar Apr 06 '16 17:04 paulcavallaro

Can you elaborate? which testing facilities do you mean?

dpkp avatar Apr 06 '16 17:04 dpkp

The big obvious one is: testutil.KafkaIntegrationTestCase and the accompanying fixtures. If there's a better way to test end to end consumer + producer code than that now, that'd be great to know, but otherwise it'd be nice to have that ability, as well as testing against possibly multiple kafka versions.

paulcavallaro avatar Apr 06 '16 17:04 paulcavallaro

Ok -- fixture code requires getting and managing all the data in the servers/ directory. How would you envision managing that as an exported package?

dpkp avatar Apr 06 '16 18:04 dpkp

This may be a little easier now that we've switched completely to pytest.

If there are bits preventing this that we could make pluggable instead then we are happy to accept PR's.

jeffwidman avatar Feb 12 '20 21:02 jeffwidman