示例#1
0
def test_all(dsn=None):
    allsuites = unittest.TestSuite([
        test_abioticdamage.suite(),
        test_assimilation.suite(),
        test_partitioning.suite(),
        test_evapotranspiration.suite(),
        test_respiration.suite(),
        test_penmanmonteith.suite(),
        test_wofost.suite(dsn)
    ])
    unittest.TextTestRunner(verbosity=2).run(allsuites)
示例#2
0
def make_test_suite(dsn=None):
    """Assemble test suite and return it
    """
    allsuites = unittest.TestSuite([test_abioticdamage.suite(),
                                    test_assimilation.suite(),
                                    test_partitioning.suite(),
                                    test_evapotranspiration.suite(),
                                    test_respiration.suite(),
                                    test_penmanmonteith.suite(),
                                    test_wofost.suite(dsn)])
    return allsuites
示例#3
0
def make_test_suite(dsn=None):
    """Assemble test suite and return it
    """
    allsuites = unittest.TestSuite([
        test_abioticdamage.suite(),
        test_assimilation.suite(),
        test_partitioning.suite(),
        test_evapotranspiration.suite(),
        test_respiration.suite(),
        test_penmanmonteith.suite(),
        test_wofost.suite(dsn)
    ])
    return allsuites
示例#4
0
文件: __init__.py 项目: sytbru/pcse
def test_all(dsn=None):
    allsuites = unittest.TestSuite(
        [
            test_abioticdamage.suite(),
            test_assimilation.suite(),
            test_partitioning.suite(),
            test_evapotranspiration.suite(),
            test_respiration.suite(),
            test_penmanmonteith.suite(),
            test_wofost.suite(dsn),
        ]
    )
    unittest.TextTestRunner(verbosity=2).run(allsuites)