Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
76754ff2
Commit
76754ff2
authored
Dec 13, 2014
by
echel0n
Browse files
Options
Downloads
Patches
Plain Diff
PEP8 performed on unitests
parent
2cba62a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/db_tests.py
+1
-1
1 addition, 1 deletion
tests/db_tests.py
tests/encoding_tests.py
+4
-4
4 additions, 4 deletions
tests/encoding_tests.py
with
5 additions
and
5 deletions
tests/db_tests.py
+
1
−
1
View file @
76754ff2
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
tests/encoding_tests.py
+
4
−
4
View file @
76754ff2
...
...
@@ -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
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment