Make specifying tests when calling quicktest optional

This commit is contained in:
Timothy Hobbs 2019-03-25 17:45:42 +01:00
parent 38dae04346
commit 6693496214

View File

@ -110,6 +110,8 @@ if __name__ == '__main__':
usage="[args]",
description="Run Django tests."
)
parser.add_argument('tests', nargs='+', type=str)
parser.add_argument('tests', nargs="*", type=str)
args = parser.parse_args()
if not args.tests:
args.tests = ['helpdesk']
QuickDjangoTest(*args.tests)