Skip to content Skip to sidebar Skip to footer

Test Def() Code Not Executed

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

Solution 1:

Your test methods have to be prefixed with "test", this might be the issue. As follows:

def test_some_condition(self):
    pass

Post a Comment for "Test Def() Code Not Executed"