mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 14:55:07 -05:00
PEP8 performed on unitests
This commit is contained in:
parent
2cba62a0e8
commit
76754ff2ba
@ -38,7 +38,7 @@ class DBMultiTests(test.SickbeardTestDBCase):
|
||||
self.db.select("SELECT * FROM tv_episodes WHERE showid = ? AND location != ''", [0000])
|
||||
|
||||
def test_threaded(self):
|
||||
for i in xrange(20):
|
||||
for i in xrange(4):
|
||||
t = threading.Thread(target=self.select)
|
||||
t.start()
|
||||
|
||||
|
@ -11,15 +11,14 @@ from sickbeard.exceptions import ex
|
||||
|
||||
sickbeard.SYS_ENCODING = 'UTF-8'
|
||||
|
||||
DEBUG = VERBOSE = False
|
||||
|
||||
class EncodingTests(unittest.TestCase):
|
||||
def test_encoding(self):
|
||||
strings = [u'Les Enfants De La Télé']
|
||||
|
||||
for s in strings:
|
||||
try:
|
||||
print 'Encoded: ' + ek.ss(s)
|
||||
x = ek.ss(s)
|
||||
assert isinstance(x, unicode)
|
||||
except Exception, e:
|
||||
ex(e)
|
||||
|
||||
@ -29,3 +28,4 @@ if __name__ == "__main__":
|
||||
print "=================="
|
||||
print "######################################################################"
|
||||
suite = unittest.TestLoader().loadTestsFromTestCase(EncodingTests)
|
||||
unittest.TextTestRunner(verbosity=2).run(suite)
|
Loading…
Reference in New Issue
Block a user