Skip to content

Commit

Permalink
fix codacy reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seLain committed Feb 24, 2018
1 parent 6e6a8cf commit a55791b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/behavior_tests/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self):
self.gm_chan = None # private channel
self.events = []
self._events_lock = threading.Lock()

def start(self):
self._rtm_connect()
self._retrieve_bot_user_ids()
Expand Down Expand Up @@ -173,6 +173,7 @@ def send_private_channel_message(self, msg, **kwargs):
def wait_for_bot_private_channel_message(self, match, tosender=True):
self._wait_for_bot_message(self.gm_chan, match, tosender=tosender)

@classmethod
def wait_for_bot_online(self):
time.sleep(4)

Expand Down
6 changes: 3 additions & 3 deletions tests/behavior_tests/test_behaviors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import pytest
from driver import Driver

'''
Function to run a bot for testing in subprocess
'''
def _start_bot_process():
"""
Function to run a bot for testing in subprocess
"""
args = ['python', 'tests/behavior_tests/run_bot.py',]
return subprocess.Popen(args)

Expand Down

0 comments on commit a55791b

Please sign in to comment.