Private GIT

Skip to content
Snippets Groups Projects
Commit e953a874 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Use womble for feedparser test

parent 01770bdf
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ sys.path.insert(1, os.path.join(tests_dir, '..'))
class AllTests(unittest.TestCase):
#Block issue_submitter_tests to avoid issue tracker spam on every build
blacklist = [tests_dir + 'all_tests.py', tests_dir + 'issue_submitter_tests.py', tests_dir + 'feedparser_tests.py']
blacklist = [tests_dir + 'all_tests.py', tests_dir + 'issue_submitter_tests.py']
def setUp(self):
self.test_file_strings = [ x for x in glob.glob(tests_dir + '*_tests.py') if not x in self.blacklist ]
self.module_strings = [file_string[len(tests_dir):len(file_string) - 3] for file_string in self.test_file_strings]
......
......@@ -6,14 +6,15 @@ sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), '../l
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from sickbeard.rssfeeds import RSSFeeds
from sickbeard.tvcache import TVCache
class FeedParserTests(unittest.TestCase):
def test_newznab(self):
def test_womble(self):
RSSFeeds().clearCache()
result = RSSFeeds().getFeed('http://lolo.sickbeard.com/api?t=caps')
result = RSSFeeds().getFeed('https://newshost.co.za/rss/?sec=tv-sd&fr=false')
self.assertTrue('entries' in result)
self.assertTrue('feed' in result)
self.assertTrue('categories' in result.feed)
for item in result['entries']:
self.assertTrue(TVCache._parseItem(item))
if __name__ == "__main__":
print "=================="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment