@runs_once
def test(dir=None, deployment_type=None):
    """Run the test suite for this project. There are current test runners defined for
    Django, Tornado, and general nosetests suites. Just set `env.test_runner` to the
    appropriate method (or write your own).

    Requires the env keys:
        root_dir - root of the project, where the fabfile resides
        test_runner - a function expecting the deployment_type as a parameter
                    that runs the test suite for this project
    """
    require('root_dir')
    require('test_runner')
    with settings(root_dir=(dir or env.root_dir), warn_only=True):
        return env.test_runner(deployment_type)
dataset/ETHPy150Open bueda/ops/buedafab/testing.py/test/original