From fd365db43a01f8ebbcc91b95e192423296ca5f80 Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Mon, 11 Aug 2014 21:09:22 +0400 Subject: [PATCH] added tests skipping if there is no proper gstreamer --- mediagoblin/tests/test_audio.py | 2 +- mediagoblin/tests/test_video.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.25.1