mardi 10 octobre 2017

Testing applications with dotted path name in django

All custom apps in my django project are in apps folder and I want to run tests on all the apps folder.

myproject
    apps/
        app1/
        apps2/

    custom_app/
    settings/
    manage.py

When I run python manage.py test --settings=myproject.settings.test it only runs the tests in custom_app.

Here is my base_settings.py

INSTALLED_APPS = [ ** list of all the django default apps **  ]

USER_APPS = [ 'cutoms_app', 'apps.app1', 'apps.app2']

INSTALLED_APPS = INSTALLED_APPS + USER_APPS

Any help is much appreciated. Thanks

Aucun commentaire:

Enregistrer un commentaire