# HG changeset patch # User Pierre-Yves David # Date 1367503137 -7200 # Node ID cc1a0aad580cf93d26959f97d8d6638e786c1082 # Parent 14b1a7ace003180a8c470600113c1f6228db2b01 [test/view] exclude some Blog entity from automatic view testing Some Blog view requires the sioc cubes that we extracted in 3.17 we do not really want to test cubes view here. So we exclude CWEtype that really requires the sioc cubes. diff -r 14b1a7ace003 -r cc1a0aad580c web/test/test_views.py --- a/web/test/test_views.py Thu May 02 14:30:36 2013 +0200 +++ b/web/test/test_views.py Thu May 02 15:58:57 2013 +0200 @@ -27,6 +27,14 @@ 'Any COUNT(X) WHERE X is CWUser', ] + def to_test_etypes(self): + # We do not really want to test cube views here. So we can drop testing + # some EntityType. The two Blog types below require the sioc cube that + # we do not want to add as a dependency. + etypes = super(AutomaticWebTest, self).to_test_etypes() + etypes -= set(('Blog', 'BlogEntry')) + return etypes + class SomeView(AnyRsetView): __regid__ = 'someview'