Generic unittest file

    0

    9

    testing
    Python public recipes

    Generic unittest class skeleton

    Shortcut: unittest.skeleton

    import unittest
    
    class MyUnitTest(unittest.TestCase):
      def setUp(self):
        pass
      def tearDown(self):
        pass
      def test_function_name(self):
        self.assertEqual(1, 1)
    if __name__ == '__main__':
      unittest.main()
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.