I am trying to re-run failed test `help_formatter_...
# development
p
I am trying to re-run failed test
help_formatter_test.py
in order to debug and fix it but pytest doesn't see it for some reason? what am I doing wrong ?
1
b
--no-process-cleanup
and
test --force
, then splash around the sandbox?
That file looks vanilla on
main
, so whats different on your box vs on
main
?
p
trying to debug a test failure there.
b
The removal of
unittest.TestCase
seemed suspect but
pytest
should support this 🤔 https://docs.pytest.org/en/7.1.x/getting-started.html#group-multiple-tests-in-a-class
Ah @polite-garden-50641
but make sure to prefix your class with
Test
otherwise the class will be skipped
p
🤦‍♂️
b
🤷‍♂️
Could always un-class the tests as well. Don't think you need it in this file
h
Yeah, we generally don't use
Test...
classes any more, but
test_...
functions, for new tests