bot lib tests: Move tests of bot library to tests/.

This makes it clearer which files are for writing bot tests
vs tests of the infrastructure.
This commit is contained in:
neiljp (Neil Pilgrim) 2018-05-30 14:53:10 -07:00 committed by Tim Abbott
parent 9e6b4edee6
commit 4c8d86c1d9
4 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ from unittest.mock import patch
class TestDefaultArguments(TestCase):
our_dir = os.path.dirname(__file__)
path_to_bot = os.path.abspath(os.path.join(our_dir, 'bots/giphy/giphy.py'))
path_to_bot = os.path.abspath(os.path.join(our_dir, '../bots/giphy/giphy.py'))
@patch('sys.argv', ['zulip-run-bot', 'giphy', '--config-file', '/foo/bar/baz.conf'])
@patch('zulip_bots.run.run_message_handler_for_bot')