Exemple #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)
Exemple #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
Exemple #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
Exemple #4
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)