[Django]-Django not running tests with manage.py test

3👍

from the unittest documentation

A testcase is created by subclassing unittest.TestCase. The three individual tests are defined with methods whose names start with the letters test. This naming convention informs the test runner about which methods represent tests.

change your test function to test_hard_no_more_than, then the test runner whould be able to discover the testcase.

👤srj

1👍

Test methods need to be named starting with “test” for the test runner to find them. So your method should be called “test_hard_no_more_than”.

Leave a comment