How do I tell django-nose where my tests are?

后端 未结 5 1633
小鲜肉
小鲜肉 2021-02-02 15:38

I have my tests for a Django application in a tests directory:

my_project/apps/my_app/
├── __init__.py
├── tests
│   ├── __init__.py
│   ├── field_tests.py
│   └         


        
5条回答
  •  盖世英雄少女心
    2021-02-02 15:49

    nose will pick automatically, if you add test = True in the beginning of module and if your methods starts with test_

    see how nose detects tests http://nose.readthedocs.io/en/latest/finding_tests.html

提交回复
热议问题