added tests skipping if there is no proper gstreamer

This commit is contained in:
Boris Bobrov 2014-08-11 21:09:22 +04:00
parent 2d1e89055d
commit fd365db43a
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import imghdr
#os.environ['GST_DEBUG'] = '4,python:4' #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 import gi
gi.require_version('Gst', '1.0') gi.require_version('Gst', '1.0')
from gi.repository import Gst from gi.repository import Gst

View File

@ -20,8 +20,9 @@ from contextlib import contextmanager
import imghdr import imghdr
#os.environ['GST_DEBUG'] = '4,python:4' #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 import gi
gi.require_version('Gst', '1.0') gi.require_version('Gst', '1.0')
from gi.repository import Gst from gi.repository import Gst