

@runs_once
def django_test_runner(deployment_type=None):
    'Django test suite runer.'
    command = './manage.py test'
    if deployment_type:
        command = (('DEPLOYMENT_TYPE=%s ' % deployment_type) + command)
    return local(command).return_code

dataset/ETHPy150Open bueda/ops/buedafab/testing.py django_test_runner/original