

@runs_once
def test(dir=None, deployment_type=None):
    'Run the test suite for this project. There are current test runners defined for\n    Django, Tornado, and general nosetests suites. Just set `env.test_runner` to the\n    appropriate method (or write your own).\n\n    Requires the env keys:\n        root_dir - root of the project, where the fabfile resides\n        test_runner - a function expecting the deployment_type as a parameter\n                    that runs the test suite for this project\n    '
    require('root_dir')
    require('test_runner')
    with settings(root_dir=(deployment_type or env.root_dir), warn_only=True):
        return env.test_runner(deployment_type)

dataset/ETHPy150Open bueda/ops/buedafab/testing.py test/VarMisuse@37/222 `dir`->`deployment_type`