Generic unittest file

    0

    28

    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
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.