https://pantsbuild.org/ logo
#development
Title
# development
p

polite-garden-50641

07/29/2022, 3:45 PM
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

bitter-ability-32190

07/29/2022, 3:47 PM
--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

polite-garden-50641

07/29/2022, 3:50 PM
trying to debug a test failure there.
b

bitter-ability-32190

07/29/2022, 3:55 PM
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

polite-garden-50641

07/29/2022, 3:56 PM
🤦‍♂️
b

bitter-ability-32190

07/29/2022, 3:56 PM
🤷‍♂️
Could always un-class the tests as well. Don't think you need it in this file
h

happy-kitchen-89482

07/29/2022, 4:21 PM
Yeah, we generally don't use
Test...
classes any more, but
test_...
functions, for new tests