bots: tests: Remove superfluous sys.path insertion.
This commit is contained in:
parent
94587db657
commit
4ce5521516
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestConverterBot(BotTestCase):
|
class TestConverterBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestDefineBot(BotTestCase):
|
class TestDefineBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestEncryptBot(BotTestCase):
|
class TestEncryptBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestFollowUpBot(BotTestCase):
|
class TestFollowUpBot(BotTestCase):
|
||||||
|
|
|
@ -3,15 +3,8 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import json
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestGiphyBot(BotTestCase):
|
class TestGiphyBot(BotTestCase):
|
||||||
|
|
|
@ -3,15 +3,8 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
from six.moves import zip
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestHelloWorldBot(BotTestCase):
|
class TestHelloWorldBot(BotTestCase):
|
||||||
|
|
|
@ -3,15 +3,8 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
from six.moves import zip
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestHelpBot(BotTestCase):
|
class TestHelpBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestThesaurusBot(BotTestCase):
|
class TestThesaurusBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestVirtualFsBot(BotTestCase):
|
class TestVirtualFsBot(BotTestCase):
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestWikipediaBot(BotTestCase):
|
class TestWikipediaBot(BotTestCase):
|
||||||
|
|
|
@ -4,14 +4,6 @@ from __future__ import absolute_import
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import mock
|
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
|
from bots_test_lib import BotTestCase
|
||||||
|
|
||||||
class TestXkcdBot(BotTestCase):
|
class TestXkcdBot(BotTestCase):
|
||||||
|
|
Loading…
Reference in a new issue