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

[test] proper licence / main in all test modules

parent f0f83ae4f420
# coding: utf-8
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from io import StringIO
......@@ -57,3 +72,8 @@ class ImportSkosDataCommandTC(testlib.CubicWebTC):
def test_massive(self):
self.run('-s', 'massive')
self._test_base()
if __name__ == '__main__':
from unittest import main
main()
# coding: utf-8
# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
......@@ -403,5 +403,5 @@ class RDFAdaptersTC(CubicWebTC):
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
from unittest import main
main()
# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
......
# coding: utf-8
import cubicweb.devtools # set $PYTHONPATH
from logilab.common.testlib import TestCase, unittest_main
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
from logilab.common.testlib import TestCase
import cubicweb.devtools # noqa set $PYTHONPATH
from cubes.skos import lcsv, rdfio
from cubes.skos.rdfio import unicode_with_language as ul
......@@ -63,4 +81,5 @@ class LCSV2RDFTC(TestCase):
)
if __name__ == "__main__":
unittest_main()
from unittest import main
main()
# coding: utf-8
#
# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
......@@ -19,7 +18,7 @@
import os
from tempfile import NamedTemporaryFile
from logilab.common.testlib import TestCase, require_module, unittest_main
from logilab.common.testlib import TestCase, require_module
from cubicweb.devtools.testlib import CubicWebTC
......@@ -357,4 +356,5 @@ class AddEntitiesToRDFGraphTC(CubicWebTC):
self.assertCountEqual(graph.triples(), expected)
if __name__ == '__main__':
unittest_main()
from unittest import main
main()
# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
......@@ -111,5 +111,5 @@ class SKOSSchemaTC(CubicWebTC):
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
from unittest import main
main()
......@@ -200,5 +200,5 @@ class LCSVImportTC(CubicWebTC):
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
from unittest import main
main()
# coding: utf-8
# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
......@@ -108,5 +108,5 @@ class ViewsTC(CubicWebTC):
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()
from unittest import main
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