Skip to content

Commit 3a2f934

Browse files
committed
add args from env vars, make test that does nothing
1 parent e726620 commit 3a2f934

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def main():
153153
"prefix or instrument name not set - have you run config_env.bat?"
154154
)
155155

156-
broker = "livedata.isis.cclrc.ac.uk:31092"
157-
topic = f"{instrument_name}_runInfo"
156+
broker = os.environ.get("BORZOI_KAFKA_BROKER", "livedata.isis.cclrc.ac.uk:31092")
157+
topic = os.environ.get("BORZOI_TOPIC", f"{instrument_name}_runInfo")
158158
logger.info("setting up producer")
159159
loop = asyncio.new_event_loop()
160160
producer = loop.run_until_complete(set_up_producer(broker))

tests/test_main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
def test_that_does_nothing():
3+
pass

0 commit comments

Comments
 (0)