diff options
| author | Boris Bobrov <breton@cynicmansion.ru> | 2014-08-11 21:09:22 +0400 |
|---|---|---|
| committer | Boris Bobrov <breton@cynicmansion.ru> | 2015-02-16 13:41:09 +0300 |
| commit | fd365db43a01f8ebbcc91b95e192423296ca5f80 (patch) | |
| tree | 7f005484e3cd6ae569fbf560c8bbfac93522b771 /mediagoblin/tests | |
| parent | 2d1e89055d52023a7600f35dd41564019f4d70c3 (diff) | |
| download | mediagoblin-fd365db43a01f8ebbcc91b95e192423296ca5f80.tar.lz mediagoblin-fd365db43a01f8ebbcc91b95e192423296ca5f80.tar.xz mediagoblin-fd365db43a01f8ebbcc91b95e192423296ca5f80.zip | |
added tests skipping if there is no proper gstreamer
Diffstat (limited to 'mediagoblin/tests')
| -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 |
