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
a70aca6f
Commit
a70aca6f
authored
Dec 13, 2014
by
echel0n
Browse files
Options
Downloads
Patches
Plain Diff
Updated travis-ci tests
parent
68cca69b
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.travis.yml
+1
-8
1 addition, 8 deletions
.travis.yml
Makefile
+5
-0
5 additions, 0 deletions
Makefile
tests/db_tests.py
+2
-2
2 additions, 2 deletions
tests/db_tests.py
tests/encoding_tests.py
+1
-1
1 addition, 1 deletion
tests/encoding_tests.py
tests/test_lib.py
+3
-4
3 additions, 4 deletions
tests/test_lib.py
with
12 additions
and
15 deletions
.travis.yml
+
1
−
8
View file @
a70aca6f
...
...
@@ -3,9 +3,6 @@ python:
-
2.6
-
2.7
env
:
-
DB=sqlite://
branches
:
only
:
-
develop
...
...
@@ -13,12 +10,8 @@ branches:
install
:
-
pip install cheetah
before_script
:
-
cd ./tests
-
chmod +x ./all_tests.py
script
:
-
./all_
tests
.py
-
make
tests
-all
notifications
:
irc
:
"
irc.freenode.net#sickrage"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
5
−
0
View file @
a70aca6f
test-all
:
@
nosetests
--cover-package
=
sickrage
--verbosity
=
1
--cover-erase
test-all-with-coverage
:
@
nosetests
--cover-package
=
sickrage
--verbosity
=
1
--cover-erase
--with-coverage
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/db_tests.py
+
2
−
2
View file @
a70aca6f
...
...
@@ -50,5 +50,5 @@ if __name__ == '__main__':
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
DBBasicTests
)
unittest
.
TextTestRunner
(
verbosity
=
2
).
run
(
suite
)
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
DBMultiTests
)
unittest
.
TextTestRunner
(
verbosity
=
2
).
run
(
suite
)
#
suite = unittest.TestLoader().loadTestsFromTestCase(DBMultiTests)
#
unittest.TextTestRunner(verbosity=2).run(suite)
This diff is collapsed.
Click to expand it.
tests/encoding_tests.py
+
1
−
1
View file @
a70aca6f
...
...
@@ -24,7 +24,7 @@ class EncodingTests(unittest.TestCase):
if
__name__
==
"
__main__
"
:
print
"
==================
"
print
"
STARTING - E
ncoding
TESTS
"
print
"
STARTING - E
NCODING
TESTS
"
print
"
==================
"
print
"
######################################################################
"
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
EncodingTests
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_lib.py
+
3
−
4
View file @
a70aca6f
...
...
@@ -32,10 +32,11 @@ sys.path.append(os.path.abspath('../lib'))
import
sickbeard
import
shutil
from
sickbeard
import
encodingKludge
as
ek
,
providers
,
tvcache
from
sickbeard
import
providers
,
tvcache
from
sickbeard
import
db
from
sickbeard.databases
import
mainDB
from
sickbeard.databases
import
cache_db
,
failed_db
from
sickbeard.tv
import
TVEpisode
#=================
# test globals
...
...
@@ -56,7 +57,6 @@ SHOWDIR = os.path.join(TESTDIR, SHOWNAME + " final")
#sickbeard.logger.sb_log_instance = sickbeard.logger.SBRotatingLogHandler(os.path.join(TESTDIR, 'sickbeard.log'), sickbeard.logger.NUM_LOGS, sickbeard.logger.LOG_SIZE)
sickbeard
.
logger
.
SBRotatingLogHandler
.
log_file
=
os
.
path
.
join
(
os
.
path
.
join
(
TESTDIR
,
'
Logs
'
),
'
test_sickbeard.log
'
)
#=================
# prepare env functions
#=================
...
...
@@ -112,8 +112,7 @@ mainDB.sickbeard.save_config = _dummy_saveConfig
def
_fake_specifyEP
(
self
,
season
,
episode
):
pass
sickbeard
.
tv
.
TVEpisode
.
specifyEpisode
=
_fake_specifyEP
TVEpisode
.
specifyEpisode
=
_fake_specifyEP
#=================
# test classes
...
...
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