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”.
- [Django]-CSRF_COOKIE_SAMESITE equivalent for django 1.6.5
- [Django]-How to use pathlib.Path in Django?
- [Django]-How do i make a functioning Delete confirmation popup in Django using Bootstrap4 Modal
- [Django]-Django: Selectively Apply CSS Styles to Quiz Radio Buttons
Source:stackexchange.com