Test def () failed

When I run the “manage.py” test to test my Django models, the code defined in each method (ie def ()) for each class does not execute. But if I move the code outside def, but still in each class it runs

-1
source share
1 answer

Your test methods must have the prefix "test", this may be a problem. As below:

def test_some_condition(self):
    pass
0
source

Source: https://habr.com/ru/post/1531946/


All Articles