diff --git a/bots/converter/test_converter.py b/bots/converter/test_converter.py index b379b08..856fbf0 100644 --- a/bots/converter/test_converter.py +++ b/bots/converter/test_converter.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestConverterBot(BotTestCase): diff --git a/bots/define/test_define.py b/bots/define/test_define.py index 1841fa9..636d943 100644 --- a/bots/define/test_define.py +++ b/bots/define/test_define.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestDefineBot(BotTestCase): diff --git a/bots/encrypt/test_encrypt.py b/bots/encrypt/test_encrypt.py index 030f175..363ca3e 100644 --- a/bots/encrypt/test_encrypt.py +++ b/bots/encrypt/test_encrypt.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestEncryptBot(BotTestCase): diff --git a/bots/followup/test_followup.py b/bots/followup/test_followup.py index 10df98c..c929b3c 100644 --- a/bots/followup/test_followup.py +++ b/bots/followup/test_followup.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestFollowUpBot(BotTestCase): diff --git a/bots/giphy/test_giphy.py b/bots/giphy/test_giphy.py index 98d277b..06349b8 100644 --- a/bots/giphy/test_giphy.py +++ b/bots/giphy/test_giphy.py @@ -3,15 +3,8 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys import json -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestGiphyBot(BotTestCase): diff --git a/bots/helloworld/test_helloworld.py b/bots/helloworld/test_helloworld.py index 256b8b8..4b36822 100644 --- a/bots/helloworld/test_helloworld.py +++ b/bots/helloworld/test_helloworld.py @@ -3,15 +3,8 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys from six.moves import zip -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestHelloWorldBot(BotTestCase): diff --git a/bots/help/test_help.py b/bots/help/test_help.py index c115722..9048531 100644 --- a/bots/help/test_help.py +++ b/bots/help/test_help.py @@ -3,15 +3,8 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys from six.moves import zip -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestHelpBot(BotTestCase): diff --git a/bots/thesaurus/test_thesaurus.py b/bots/thesaurus/test_thesaurus.py index 533b2f1..8d04b71 100644 --- a/bots/thesaurus/test_thesaurus.py +++ b/bots/thesaurus/test_thesaurus.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestThesaurusBot(BotTestCase): diff --git a/bots/virtual_fs/test_virtual_fs.py b/bots/virtual_fs/test_virtual_fs.py index 644f340..6cffe79 100644 --- a/bots/virtual_fs/test_virtual_fs.py +++ b/bots/virtual_fs/test_virtual_fs.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestVirtualFsBot(BotTestCase): diff --git a/bots/wikipedia/test_wikipedia.py b/bots/wikipedia/test_wikipedia.py index 5d9f50f..2769f0f 100644 --- a/bots/wikipedia/test_wikipedia.py +++ b/bots/wikipedia/test_wikipedia.py @@ -3,14 +3,6 @@ from __future__ import absolute_import from __future__ import print_function -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestWikipediaBot(BotTestCase): diff --git a/bots/xkcd/test_xkcd.py b/bots/xkcd/test_xkcd.py index 4d702b1..703df78 100644 --- a/bots/xkcd/test_xkcd.py +++ b/bots/xkcd/test_xkcd.py @@ -4,14 +4,6 @@ from __future__ import absolute_import from __future__ import print_function import mock -import os -import sys - -our_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.normpath(os.path.join(our_dir))) -# For dev setups, we can find the API in the repo itself. -if os.path.exists(os.path.join(our_dir, '..')): - sys.path.insert(0, '..') from bots_test_lib import BotTestCase class TestXkcdBot(BotTestCase):