diff options
author | David Arthur <mumrah@gmail.com> | 2013-11-11 10:20:25 -0500 |
---|---|---|
committer | David Arthur <mumrah@gmail.com> | 2013-11-11 10:20:25 -0500 |
commit | af3a57edb2c83c35b832e759b4c24ec72149841a (patch) | |
tree | 590dc33533dc60cc17364f3143ba4f2792a96544 | |
parent | 33cde520de9067845d4c7159a2c2834846e1957f (diff) | |
download | kafka-python-af3a57edb2c83c35b832e759b4c24ec72149841a.tar.gz |
Set host and port in ExternalService test fixture
So we can run tests against an already running Kafka instance
KAFKA_URI=tcp://localhost:9092 python -m test.test_integration
-rw-r--r-- | test/fixtures.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fixtures.py b/test/fixtures.py index 946c64f..c771a58 100644 --- a/test/fixtures.py +++ b/test/fixtures.py @@ -74,6 +74,8 @@ def render_template(source_file, target_file, binding): class ExternalService(object): def __init__(self, host, port): print("Using already running service at %s:%d" % (host, port)) + self.host = host + self.port = port def open(self): pass |