Commit 06556014 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[test] add missing main sections

parent 7a24a9a08b7c
......@@ -60,3 +60,8 @@ class ConceptTC(CubicWebTC):
c1 = cnx.entity_from_eid(self.c1_eid)
self.assertEqual(c1.labels,
{u'en': u'hip', u'fr': u'hîp'})
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
......@@ -83,3 +83,8 @@ class SKOSXMLImportTC(CubicWebTC):
self.assertEqual(len(concept.in_scheme), 2)
concept = cnx.execute('Concept X WHERE X cwuri "http://logilab.fr/thesaurus/test/c3"').one()
self.assertEqual(len(concept.broader_concept), 2)
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
......@@ -72,3 +72,8 @@ class ViewsTC(CubicWebTC):
set(u'électro hip-hop rap jazz classique'.split()))
self.assertEqual(set(l.language_code for c in scheme.top_concepts for l in c.pref_label),
set(['fr']))
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment