background image

Skip a Test or Fail a Test

import unittest

class MyTest(unittest.TestCase):

    

@unittest.skip("Not done yet")

    def test_add_fractions(self):

        pass

    def test_fraction_constructor(self):

        

self.fail

(

"Write this test!"

)

Comments:

Unit Testing in Python

navigate_before navigate_next