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
This commit is contained in:
David Arthur
2013-11-11 10:20:25 -05:00
parent 33cde520de
commit af3a57edb2

View File

@@ -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