Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created July 31, 2012 22:14
Show Gist options
  • Select an option

  • Save Fluxx/3221131 to your computer and use it in GitHub Desktop.

Select an option

Save Fluxx/3221131 to your computer and use it in GitHub Desktop.
@attr('requires-zookeeper')
class TestKafkaTpoicIntegration(BaseIntegrationTest, KafkaIntegrationTestCase):
@fixture
def zookeeper(self):
client = KazooClient()
client.connect()
return client
@fixture
def kafka_cluster(self):
return Cluster(self.zookeeper)
@fixture
def channel(self):
return Channel('tests.integration', KafkaTopic(self.kafka_cluster))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment