From e59b9ed897e2e53ca64026cc6507bab900787953 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Thu, 25 May 2017 02:04:26 +0200 Subject: [PATCH] bots: Make run.py independent from current working path. --- contrib_bots/bots/define/test_define.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib_bots/bots/define/test_define.py b/contrib_bots/bots/define/test_define.py index a526751..770f1fd 100644 --- a/contrib_bots/bots/define/test_define.py +++ b/contrib_bots/bots/define/test_define.py @@ -45,7 +45,7 @@ class TestDefineBot(TestCase): def test_define(self): # type: None -> None # Edit bot_module to test different bots, the below code can be looped for all the bots. - bot_module = "./bots/define/define.py" + bot_module = os.path.join(our_dir, "define.py") messages = self.request_messages() bot_response = self.bot_response_messages() test_case = BotTestCase()