Private GIT

Skip to content
Snippets Groups Projects
Commit 2fd21f5a authored by Kfir Hadas's avatar Kfir Hadas Committed by miigotu
Browse files

Conditionally skip BinSearch provider test (#3690)

* Disable BinSearch tests

* Skip in feedparser tests instead (based on response from server)
parent 48e62cd9
Branches
Tags
No related merge requests found
......@@ -12,12 +12,14 @@ 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.providers.binsearch import provider as binsearch
import requests
class FeedParserTests(unittest.TestCase):
"""
Test feed parser
"""
@unittest.skipIf(not requests.head(binsearch.urls['rss'], timeout=30).ok, 'BinSearch is unavailable')
def test_binsearch(self):
"""
Test BinSearch
......
......@@ -16,11 +16,11 @@
#
# You should have received a copy of the GNU General Public License
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
# pylint: disable=fixme
"""
Test Provider Result Parsing
When recording new cassettes:
Set overwrite_cassettes = True on line 43
Set overwrite_cassettes = True on line 48
Delete the cassette yml file with the same base filename as this file in the cassettes dir next to this file
Be sure to adjust the self.search_strings so they return results. They must be identical to search strings generated by SickRage
"""
......@@ -57,7 +57,6 @@ disabled_provider_tests = {
# Have to trick it into thinking is an anime search, and add string overrides
'TokyoToshokan': ['test_rss_search', 'test_episode_search', 'test_season_search'],
# 'Torrrentz': ['test_rss_search', 'test_episode_search', 'test_season_search'],
}
test_string_overrides = {
'Cpasbien': {'Episode': ['The 100 S02E16'], 'Season': ['The 100 S02']},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment