Permalink
Browse files

split out path adjustments into __init__

  • Loading branch information...
1 parent 34f3f8a commit f820c6dcb33972b768f247d8f58f021c54bb1422 @mutantmonkey committed Jun 1, 2012
View
@@ -0,0 +1,3 @@
+# add current working directory to path
+import sys
+sys.path.append('.')
View
@@ -3,14 +3,11 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import MagicMock, Mock
from modules.fcc import fcc
+
class TestFcc(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
View
@@ -3,15 +3,12 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import re
import unittest
from mock import MagicMock, Mock
from modules.hs import search, hs
+
class TestHs(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
@@ -3,15 +3,12 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import re
import unittest
from mock import MagicMock, Mock
from modules.imdb import imdb_search, imdb
+
class TestImdb(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
@@ -3,14 +3,11 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import MagicMock, Mock
from modules import mylife
+
class TestMylife(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
@@ -3,14 +3,11 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import MagicMock, Mock
from modules.short import short
+
class TestShort(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
@@ -3,14 +3,11 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import MagicMock, Mock
from modules.slogan import sloganize, slogan
+
class TestSlogan(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
View
@@ -3,15 +3,12 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import re
import unittest
from mock import MagicMock, Mock
from modules.tfw import tfw
+
class TestTfw(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
@@ -3,15 +3,12 @@
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import re
import unittest
from mock import MagicMock, Mock
from modules.urbandict import urbandict
+
class TestUrbandict(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
View
@@ -0,0 +1,3 @@
+# add current working directory to path
+import sys
+sys.path.append('.')
View
@@ -2,13 +2,8 @@
Tests for phenny's bot.py
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import call, patch, Mock
-
import bot
View
@@ -2,13 +2,8 @@
Tests for phenny's irc.py
"""
-# add current working directory to path
-import sys
-sys.path.append('.')
-
import unittest
from mock import call, patch, Mock
-
import irc

0 comments on commit f820c6d

Please sign in to comment.