bots: tests: Remove superfluous sys.path insertion.
MODIFY
bots/converter/test_converter.py
bots/converter/test_converter.py
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):

MODIFY
bots/define/test_define.py
bots/define/test_define.py
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):

MODIFY
bots/encrypt/test_encrypt.py
bots/encrypt/test_encrypt.py
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):

MODIFY
bots/followup/test_followup.py
bots/followup/test_followup.py
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):

MODIFY
bots/giphy/test_giphy.py
bots/giphy/test_giphy.py
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):

MODIFY
bots/helloworld/test_helloworld.py
bots/helloworld/test_helloworld.py
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):

MODIFY
bots/help/test_help.py
bots/help/test_help.py
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):

MODIFY
bots/thesaurus/test_thesaurus.py
bots/thesaurus/test_thesaurus.py
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):

MODIFY
bots/virtual_fs/test_virtual_fs.py
bots/virtual_fs/test_virtual_fs.py
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):

MODIFY
bots/wikipedia/test_wikipedia.py
bots/wikipedia/test_wikipedia.py
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):

MODIFY
bots/xkcd/test_xkcd.py
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):

bots: tests: Remove superfluous sys.path insertion.