Monday 15 July 2013

python - Django: reusable app testing -



python - Django: reusable app testing -

by next official django doc, i've extracted app project , made reusable , installable using pip (currently still have larn how release on pypi that's story)... far good... have no thought how run tests wrote app, since after installing in project using pip django stopped execute tests (by default in django 1.7 project-apps tests picked up)... question is: how can run tests apps has been extracted main project sources?

ps: of course of study don't want forcefulness potential users of app run tests wrote, have run them while working on app on machine

ok, i'm idiot... thing have passing app name in test command:

python manage.py test -v 2 -p "test*.py" --noinput --settings=settings.test my_app

python django unit-testing tdd pip

No comments:

Post a Comment