From: Boris Bobrov Date: Mon, 11 Aug 2014 17:09:22 +0000 (+0400) Subject: added tests skipping if there is no proper gstreamer X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd365db43a01f8ebbcc91b95e192423296ca5f80;p=mediagoblin.git added tests skipping if there is no proper gstreamer --- diff --git a/mediagoblin/tests/test_audio.py b/mediagoblin/tests/test_audio.py index 740d9cdd..62d582ff 100644 --- a/mediagoblin/tests/test_audio.py +++ b/mediagoblin/tests/test_audio.py @@ -24,7 +24,7 @@ import imghdr #os.environ['GST_DEBUG'] = '4,python:4' -#TODO: this should be skipped if video plugin is not enabled +pytest.importorskip("gi.repository.Gst") import gi gi.require_version('Gst', '1.0') from gi.repository import Gst diff --git a/mediagoblin/tests/test_video.py b/mediagoblin/tests/test_video.py index 03298b67..79244515 100644 --- a/mediagoblin/tests/test_video.py +++ b/mediagoblin/tests/test_video.py @@ -20,8 +20,9 @@ from contextlib import contextmanager import imghdr #os.environ['GST_DEBUG'] = '4,python:4' +import pytest +pytest.importorskip("gi.repository.Gst") -#TODO: this should be skipped if video plugin is not enabled import gi gi.require_version('Gst', '1.0') from gi.repository import Gst