mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
tests: don't run video tests on ci due to rate limiting
This commit is contained in:
parent
511c6f7985
commit
05cc593da6
@ -606,6 +606,7 @@ class TestRecorder(LiveServerTests, HttpBinLiveTests, FakeRedisTests, TempDirTes
|
|||||||
writer.close()
|
writer.close()
|
||||||
assert len(writer.fh_cache) == 0
|
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):
|
def test_record_video_metadata(self):
|
||||||
pytest.importorskip('youtube_dl')
|
pytest.importorskip('youtube_dl')
|
||||||
warc_path = to_path(self.root_dir + '/warcs/{user}/{coll}/')
|
warc_path = to_path(self.root_dir + '/warcs/{user}/{coll}/')
|
||||||
|
@ -11,6 +11,7 @@ from fakeredis import FakeStrictRedis
|
|||||||
from mock import patch
|
from mock import patch
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import os
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from warcio.recordloader import ArcWarcRecordLoader
|
from warcio.recordloader import ArcWarcRecordLoader
|
||||||
@ -384,6 +385,7 @@ foo=bar&test=abc"""
|
|||||||
assert resp.headers['Warcserver-Source-Coll'] == 'url-agnost'
|
assert resp.headers['Warcserver-Source-Coll'] == 'url-agnost'
|
||||||
assert resp.headers['Memento-Datetime'] == 'Mon, 29 Jul 2013 19:51:51 GMT'
|
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):
|
def test_live_video_loader(self):
|
||||||
pytest.importorskip('youtube_dl')
|
pytest.importorskip('youtube_dl')
|
||||||
params = {'url': 'http://www.youtube.com/v/BfBgWtAIbRc',
|
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'WARC-Type: metadata' in resp.body
|
||||||
assert b'Content-Type: application/vnd.youtube-dl_formats+json' 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):
|
def test_live_video_loader_post(self):
|
||||||
pytest.importorskip('youtube_dl')
|
pytest.importorskip('youtube_dl')
|
||||||
req_data = """\
|
req_data = """\
|
||||||
|
@ -6,6 +6,7 @@ from pywb.warcserver.test.testutils import HttpBinLiveTests
|
|||||||
|
|
||||||
from pywb.utils.geventserver import GeventServer
|
from pywb.utils.geventserver import GeventServer
|
||||||
import pytest
|
import pytest
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -149,6 +150,7 @@ class TestLiveRewriter(HttpBinLiveTests, BaseConfigTest):
|
|||||||
resp = resp.follow(status=400)
|
resp = resp.follow(status=400)
|
||||||
assert resp.status_int == 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):
|
def test_live_video_info(self):
|
||||||
pytest.importorskip('youtube_dl')
|
pytest.importorskip('youtube_dl')
|
||||||
resp = self.testapp.get('/live/vi_/https://www.youtube.com/watch?v=DjFZyFWSt1M')
|
resp = self.testapp.get('/live/vi_/https://www.youtube.com/watch?v=DjFZyFWSt1M')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user