web/test/unittest_viewselector.py
branchstable
changeset 8591 f7c07e9d4f2e
parent 8292 6f2de09b29e8
child 8632 fa044b9157d7
child 8641 459d0c48dfaf
--- a/web/test/unittest_viewselector.py	Tue Oct 23 12:12:43 2012 +0200
+++ b/web/test/unittest_viewselector.py	Wed Oct 24 09:56:52 2012 +0200
@@ -53,6 +53,11 @@
 
 assert RDFVIEWS
 
+if hasattr(rdf, 'RDFView'): # not available if rdflib not installed
+    RDFVIEWS = [('rdf', rdf.RDFView)]
+else:
+    RDFVIEWS = []
+
 class ViewSelectorTC(CubicWebTC):
 
     def setup_database(self):