Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Sep 17, 2016
1 parent b7c9cd7 commit 17856bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mpf/tests/MpfTestCase.py
Expand Up @@ -312,6 +312,7 @@ def tearDown(self):
def patch_bcp(self):
self.sent_bcp_commands = list()
self.machine.bcp.send = self._bcp_send
self.machine.bcp.configured = True

def _bcp_send(self, bcp_command, callback=None, **kwargs):
self.sent_bcp_commands.append((bcp_command, callback, kwargs))
Expand Down
1 change: 1 addition & 0 deletions mpf/tests/test_Bcp.py
Expand Up @@ -138,6 +138,7 @@ def test_bcp_mpf_and_mpf_mc(self):
bcp_mc.enabled = True
self.advance_time_and_run()
mc.events.post = MagicMock()
self.machine.options['bcp'] = True

bcp_mpf = self.machine.bcp
bcp_mpf.bcp_clients = [TestBcpClient(bcp_mc.receive_queue)]
Expand Down

0 comments on commit 17856bc

Please sign in to comment.