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
c3681adb
Commit
c3681adb
authored
Dec 10, 2015
by
labrys
Browse files
Options
Downloads
Patches
Plain Diff
Add API test suite.
TODO: Implement API tests.
parent
543c6103
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/api_v1_tests.py
+257
-0
257 additions, 0 deletions
tests/api_v1_tests.py
with
257 additions
and
0 deletions
tests/api_v1_tests.py
0 → 100644
+
257
−
0
View file @
c3681adb
# coding=utf-8
"""
Test the SR API
"""
import
unittest
class
APITestEpisodes
(
unittest
.
TestCase
):
"""
Test episode commands for API
This tests all episode related commands from the legacy api.
"""
@unittest.skip
(
'
Not yet implemented
'
)
def
test_episode
(
self
):
"""
Test getting detailed information about an episode using the legacy API.
:return: None
"""
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_episode_search
(
self
):
"""
Test searching for an episode using the legacy API.
The response might take some time.
:return: None
"""
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_episode_set_status
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_episode_subtitle_search
(
self
):
pass
class
APITestShows
(
unittest
.
TestCase
):
"""
Test shows commands for API
"""
@unittest.skip
(
'
Not yet implemented
'
)
def
test_shows
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_shows_stats
(
self
):
pass
class
APITestShow
(
unittest
.
TestCase
):
"""
Test show commands for API
"""
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_add_existing
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_add_new
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_cache
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_delete
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_get_banner
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_get_fanart
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_get_network_logo
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_get_poster
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_get_quality
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_pause
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_refresh
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_season_list
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_seasons
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_set_quality
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_stats
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_show_update
(
self
):
pass
class
APITestSickBeard
(
unittest
.
TestCase
):
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sickbeard
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_add_root_dir
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_check_scheduler
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_check_version
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_delete_root_dir
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_get_defaults
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_get_messages
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_get_root_dirs
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_pause_backlog
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_ping
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_restart
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_search_indexers
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_search_tvdb
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_search_tvrage
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_set_defaults
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_shutdown
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_sb_update
(
self
):
pass
class
APITestHistory
(
unittest
.
TestCase
):
@unittest.skip
(
'
Not yet implemented
'
)
def
test_history
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_history_clear
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_history_trim
(
self
):
pass
class
APITestMisc
(
unittest
.
TestCase
):
@unittest.skip
(
'
Not yet implemented
'
)
def
test_backlog
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_exceptions
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_failed
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_future
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_help
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_logs
(
self
):
pass
@unittest.skip
(
'
Not yet implemented
'
)
def
test_post_process
(
self
):
pass
TEST_CLASSES
=
{
APITestEpisodes
,
APITestHistory
,
APITestMisc
,
APITestShow
,
APITestShows
,
APITestSickBeard
}
def
run_all
():
"""
Run all tests
:return:
"""
unittest
.
main
(
verbosity
=
2
)
if
__name__
==
'
__main__
'
:
run_all
()
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