Disable individual Python unit tests temporarily -
how can individual unit tests temporarily disabled when using unittest
module in python?
individual test methods or classes can both disabled using unittest.skip
decorator.
@unittest.skip("reason skipping") def test_foo(): print('this foo test case.') @unittest.skip # no reason needed def test_bar(): print('this bar test case.')
for other options, see docs skipping tests , expected failures.
Comments
Post a Comment