diff options
-rw-r--r-- | mediagoblin/tests/test_audio.py | 2 | ||||
-rw-r--r-- | 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 |