When I run "manage.py test" to test my Django models, the code defined in each method (ie def()) of each class is not executed. But if I move code outside of def but still in each class it is executed
See Question&Answers more detail:osWhen I run "manage.py test" to test my Django models, the code defined in each method (ie def()) of each class is not executed. But if I move code outside of def but still in each class it is executed
See Question&Answers more detail:os