1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

tests: don't run video tests on ci due to rate limiting

This commit is contained in:
Ilya Kreymer 2019-07-31 18:11:42 -07:00
parent 511c6f7985
commit 05cc593da6
3 changed files with 6 additions and 0 deletions

View File

@ -606,6 +606,7 @@ class TestRecorder(LiveServerTests, HttpBinLiveTests, FakeRedisTests, TempDirTes
writer.close()
assert len(writer.fh_cache) == 0
@pytest.mark.skipif(os.environ.get('CI') is not None, reason='Skip Test on CI')
def test_record_video_metadata(self):
pytest.importorskip('youtube_dl')
warc_path = to_path(self.root_dir + '/warcs/{user}/{coll}/')

View File

@ -11,6 +11,7 @@ from fakeredis import FakeStrictRedis
from mock import patch
import pytest
import os
import json
from warcio.recordloader import ArcWarcRecordLoader
@ -384,6 +385,7 @@ foo=bar&test=abc"""
assert resp.headers['Warcserver-Source-Coll'] == 'url-agnost'
assert resp.headers['Memento-Datetime'] == 'Mon, 29 Jul 2013 19:51:51 GMT'
@pytest.mark.skipif(os.environ.get('CI') is not None, reason='Skip Test on CI')
def test_live_video_loader(self):
pytest.importorskip('youtube_dl')
params = {'url': 'http://www.youtube.com/v/BfBgWtAIbRc',
@ -402,6 +404,7 @@ foo=bar&test=abc"""
assert b'WARC-Type: metadata' in resp.body
assert b'Content-Type: application/vnd.youtube-dl_formats+json' in resp.body
@pytest.mark.skipif(os.environ.get('CI') is not None, reason='Skip Test on CI')
def test_live_video_loader_post(self):
pytest.importorskip('youtube_dl')
req_data = """\

View File

@ -6,6 +6,7 @@ from pywb.warcserver.test.testutils import HttpBinLiveTests
from pywb.utils.geventserver import GeventServer
import pytest
import os
import sys
import six
@ -149,6 +150,7 @@ class TestLiveRewriter(HttpBinLiveTests, BaseConfigTest):
resp = resp.follow(status=400)
assert resp.status_int == 400
@pytest.mark.skipif(os.environ.get('CI') is not None, reason='Skip Test on CI')
def test_live_video_info(self):
pytest.importorskip('youtube_dl')
resp = self.testapp.get('/live/vi_/https://www.youtube.com/watch?v=DjFZyFWSt1M')