pytest-dev / unittest2pytest

helps rewriting Python `unittest` test-cases into `pytest` test-cases
GNU General Public License v3.0
128 stars 27 forks source link

Convert @unittest.skipIf / @unittest.skipUnless #68

Open giampaolo opened 4 months ago

giampaolo commented 4 months ago

Hello. I've been using this nice tool to convert psutil and pyftpdlib code bases. One of the few things that are left out from the conversion are @unittest.skipIf and @unittest.skipUnless decorators, which can be converted to @pytest.mark.skipif(condition, reason="reason"). It would be nice to have this added.