Skip to content

Commit

Permalink
Fix openbci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willwnekowicz committed Oct 27, 2016
1 parent 27b7a53 commit a30bdff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/unit/openbci_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def setUp(self):
self.rabbitmq_address = 'mock_rabbitmq'
self.rabbitmq_user = 'mock_user'
self.rabbitmq_pwd = 'mock_pwd'
self.rabbitmq_vhost = '/'

self.base_routing_key = '%s:%s' % (self.user, self.device)

Expand Down Expand Up @@ -139,7 +140,8 @@ def test_PikaPublisher(self):

options = {"rabbitmq_address": self.rabbitmq_address,
"rabbitmq_user": self.rabbitmq_user,
"rabbitmq_pwd": self.rabbitmq_pwd}
"rabbitmq_pwd": self.rabbitmq_pwd,
"rabbitmq_vhost": self.rabbitmq_vhost}

publisher = PikaPublisher(self.base_routing_key, **options)
publisher.connect()
Expand Down Expand Up @@ -180,7 +182,8 @@ def test_PikaPublisher(self):
def test_OpenBCISource(self):
options = {"rabbitmq_address": self.rabbitmq_address,
"rabbitmq_user": self.rabbitmq_user,
"rabbitmq_pwd": self.rabbitmq_pwd}
"rabbitmq_pwd": self.rabbitmq_pwd,
"rabbitmq_vhost": self.rabbitmq_vhost}

publisher = PikaPublisher(self.base_routing_key, **options)
publisher.connect()
Expand Down

0 comments on commit a30bdff

Please sign in to comment.