Esempio n. 1
0
def suite():
    from static_precompiler.tests import test_base_compiler
    from static_precompiler.tests import test_url_converter
    from static_precompiler.tests import test_utils
    from static_precompiler.tests import test_less
    from static_precompiler.tests import test_coffeescript
    from static_precompiler.tests import test_scss
    from static_precompiler.tests import test_templatetags
    from static_precompiler.tests import test_management

    try:
        # django 1.7+
        from django import setup
        setup()
    except ImportError:
        pass

    test_suite = unittest.TestSuite()
    test_suite.addTests(test_base_compiler.suite())
    test_suite.addTests(test_url_converter.suite())
    test_suite.addTests(test_utils.suite())
    test_suite.addTests(test_less.suite())
    test_suite.addTests(test_coffeescript.suite())
    test_suite.addTests(test_scss.suite())
    test_suite.addTests(test_templatetags.suite())
    test_suite.addTests(test_management.suite())
    return test_suite
Esempio n. 2
0
def suite():
    from static_precompiler.tests import test_base_compiler
    from static_precompiler.tests import test_url_converter
    from static_precompiler.tests import test_less
    from static_precompiler.tests import test_coffeescript
    from static_precompiler.tests import test_scss
    from static_precompiler.tests import test_static_precompiler_watch

    test_suite = unittest.TestSuite()
    test_suite.addTests(test_base_compiler.suite())
    test_suite.addTests(test_url_converter.suite())
    test_suite.addTests(test_less.suite())
    test_suite.addTests(test_coffeescript.suite())
    test_suite.addTests(test_scss.suite())
    test_suite.addTests(test_static_precompiler_watch.suite())
    return test_suite
def suite():
    from static_precompiler.tests import test_base_compiler
    from static_precompiler.tests import test_url_converter
    from static_precompiler.tests import test_utils
    from static_precompiler.tests import test_less
    from static_precompiler.tests import test_coffeescript
    from static_precompiler.tests import test_scss
    from static_precompiler.tests import test_templatetags
    from static_precompiler.tests import test_management

    test_suite = unittest.TestSuite()
    test_suite.addTests(test_base_compiler.suite())
    test_suite.addTests(test_url_converter.suite())
    test_suite.addTests(test_utils.suite())
    test_suite.addTests(test_less.suite())
    test_suite.addTests(test_coffeescript.suite())
    test_suite.addTests(test_scss.suite())
    test_suite.addTests(test_templatetags.suite())
    test_suite.addTests(test_management.suite())
    return test_suite