fab test now takes arguments. Try fab test:pdb=plz to enabled pdb on failure/error or fab test:module=users to test only the users app, or fab test:addons,pdb to test addons and enable pdb
This commit is contained in:
Родитель
5a774190e2
Коммит
5aa33f28c0
|
@ -14,6 +14,13 @@ def pep8():
|
|||
" apps", capture=False)
|
||||
|
||||
|
||||
def test():
|
||||
local("python manage.py test --noinput --logging-clear-handlers",
|
||||
capture=False)
|
||||
def test(module=None, pdb=False):
|
||||
cmd = "python manage.py test"
|
||||
if module:
|
||||
cmd += " %s" % module
|
||||
|
||||
cmd += " --noinput --logging-clear-handlers"
|
||||
if pdb:
|
||||
cmd += ' --pdb --pdb-failures'
|
||||
|
||||
local(cmd, capture=False)
|
||||
|
|
Загрузка…
Ссылка в новой задаче