URL: http://github.com/python-beaver/python-beaver/commit/e1fcd0033c993c839c0d8153b0ecc18563908e50
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6009b25 commit e1fcd00Copy full SHA for e1fcd00
1 file changed
beaver/tests/test_zmq_transport.py
@@ -20,14 +20,14 @@ def setUp(self):
20
self.beaver_config = BeaverConfig(mock.Mock(config=None))
21
22
def test_pub(self):
23
- os.environ["ZEROMQ_ADDRESS"] = "tcp://localhost:2120"
+ self.beaver_config.set('zeromq_address', 'tcp://localhost:2120')
24
transport = ZmqTransport(self.beaver_config, self.file_config)
25
transport.interrupt()
26
#assert not transport.zeromq_bind
27
28
def test_bind(self):
29
- self.beaver_config.mode = "bind"
30
- os.environ["ZEROMQ_ADDRESS"] = "tcp://*:2120"
+ self.beaver_config.set('zeromq_bind', 'bind')
31
32
#assert transport.zeromq_bind
33
0 commit comments