Swap to the new discovery code, notice that not all of the tests are found ⚠️ It might have something to do with some of the test names being camelCase (testMultiply) while others are snake case (test_boolean). Both conventions should be supported anyway. Could also be that the cu...
2024-03-27 21:21:41.647 [info] > C:\Python38\python.exe "c:\Users\My Name.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\unittestadapter\discovery.py" --udiscovery -v -s . -p *test.py 2024-03-27 21:21:41.648 [info] cwd: . ...
You will get theexact errorwhy the test is not discovered. Similarly, when you run the test file directly python -m unittest -v tests.test_sample you will get the same error. PyCharmandVSCodeare good, but when test is not discovered automatically, these terminal commands help a lot to fi...