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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -